Re: Killed background writer process - Mailing list pgsql-admin

From Vijaykumar Jain
Subject Re: Killed background writer process
Date
Msg-id CAM+6J96J0xx6HyBfX++2pdSF4dCrPyFf=N4hQkm42HQK7gSe4g@mail.gmail.com
Whole thread Raw
In response to Killed background writer process  (Raj kumar <rajkumar820999@gmail.com>)
Responses Re: Killed background writer process
List pgsql-admin
There is a separate server process called the background writer, whose function is to issue writes of dirty (new or modified) shared buffers. When the number of clean shared buffers appears to be insufficient, the background writer writes some dirty buffers to the file system and marks them as clean. This reduces the likelihood that server processes handling user queries will be unable to find clean buffers and have to write dirty buffers themselves. However, the background writer does cause a net overall increase in I/O load, because while a repeatedly-dirtied page might otherwise be written only once per checkpoint interval, the background writer might write it several times as it is dirtied in the same interval. The parameters discussed in this subsection can be used to tune the behavior for local needs.


I believe the postmaster checks if it is running, if not it starts again i think.
in source.

The same goes for wal writer as well.


On Fri, 4 Jun 2021 at 14:55, Raj kumar <rajkumar820999@gmail.com> wrote:
Hi Team,

I've killed background writer process for a testing purpose. I found that after sometime it automatically came up with a new PID without me doing anything from my end. 

How postgres automatically brings it up? Is there any impact on the Database and connections?

Thanks,
Raj Kumar Narendiran 


--
Thanks,
Vijay
Mumbai, India

pgsql-admin by date:

Previous
From: Raj kumar
Date:
Subject: Killed background writer process
Next
From: Laurenz Albe
Date:
Subject: Re: Killed background writer process