Re: Re: [COMMITTERS] pgsql: Start background writer during archive recovery. - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Re: [COMMITTERS] pgsql: Start background writer during archive recovery.
Date
Msg-id 499D86C6.4010905@enterprisedb.com
Whole thread Raw
In response to Re: Re: [COMMITTERS] pgsql: Start background writer during archive recovery.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Re: [COMMITTERS] pgsql: Start background writer during archive recovery.
List pgsql-hackers
Tom Lane wrote:
> Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
>> Simon Riggs wrote:
>>> More likely to be an uncommon race condition, rather than a error
>>> specific to dungbeetle. If startup process death is slow, this could
>>> happen, though hasn't occurred in other tests. 
> 
>> True, the startup process can live for a short while concurrently with 
>> bgwriter, walwriter and autovacuum launcher, before it exits.
> 
> Maybe the postmaster should wait for startup process exit before
> deciding to open for business, instead of just a signal.

Not a bad idea. Although, there's nothing wrong with the current way 
either. The startup process does a proc_exit(0) right after sending the 
signal ATM, so there's no real work left at that point.

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


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Doubts about EvalPlanQual
Next
From: Tom Lane
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Start background writer during archive recovery.