Thread: pgsql: Checkpointer starts before bgwriter to avoid missing fsync reque

pgsql: Checkpointer starts before bgwriter to avoid missing fsync reque

From
Simon Riggs
Date:
Checkpointer starts before bgwriter to avoid missing fsync requests.
Noted while testing Hot Standby startup.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/a297d64d9223f6bd9c495ff5726a3c99080c2a4a

Modified Files
--------------
src/backend/postmaster/postmaster.c |   12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)


Re: pgsql: Checkpointer starts before bgwriter to avoid missing fsync reque

From
Heikki Linnakangas
Date:
On 01.06.2012 10:28, Simon Riggs wrote:
> Checkpointer starts before bgwriter to avoid missing fsync requests.
> Noted while testing Hot Standby startup.

The processes are just forked and it will take some time for them to
initialize. Isn't there still a race condition, where the bgwriter
starts up first, and you still miss fsync requests?

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com