PostgreSQL Background processes

PostgreSQL Background processes

PostgreSQL has numerous background processes each has its own role to play for the successful functioning of the database.

List of PostgreSQL background processes:

  • Background writer
  • Checkpointer
  • Autovacuum launcher
  • WAL writer
  • Statistics collector
  • Logging collector
  • Archiver

Let’s discuss about each background process in detail.I have made this post as multi part so that we can discuss about each background process in detail. Follow the link provided on each background process for further details.

Background writer: Periodically writes the dirty buffer to a file.More about Background writer can be found here.

CheckpointerWhen a checkpoint occurs, the dirty buffer is written to the file.More about Checkpointer can be found here.

Autovacuum launcherFork autovacuum worker when autovacuum is enabled.It is the responsibility of the autovacuum daemon to carry vacuum operations on bloated tables on demand.More about Autovacuum launcher can be found here.

WAL writerWrite the WAL buffer to the WAL file.More about WAL writer can be found here.

Statistics collectorDBMS usage statistics such as session execution information ( pg_stat_activity ) and table usage statistical information ( pg_stat_all_tables ) are collected.More about Statistics collector can be found here.

Logging collectorWrite the error message to the log file.More about Logging collector can be found here.

Archiver: When in Archive.log mode, copy the WAL file to the specified directory.

 

Thank you for giving your valuable time to read the above information. I hope the content served your purpose in reaching out the blog.
Suggestions for improvement of the blog are highly appreciable. Please contact us for any information/suggestion/feedback.

If you want to be updated with all our articles

please follow us on Facebook Twitter
Please subscribe to our newsletter.

Leave a Reply