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

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Simon Riggs <simon(at)2ndQuadrant(dot)com>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Checkpointer starts before bgwriter to avoid missing fsync reque
Date: 2012-06-01 07:55:28
Message-ID: 4FC87570.1090002@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2012-06-01 08:25:33 pgsql: After any checkpoint, close all smgr files handles in bgwriter
Previous Message Simon Riggs 2012-06-01 07:28:57 pgsql: Checkpointer starts before bgwriter to avoid missing fsync reque

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2012-06-01 08:33:46 Re: [COMMITTERS] pgsql: Checkpointer starts before bgwriter to avoid missing fsync reque
Previous Message Simon Riggs 2012-06-01 07:28:57 pgsql: Checkpointer starts before bgwriter to avoid missing fsync reque