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