Peter Eisentraut <peter_e@gmx.net> writes:
>> which is clearly not giving the postmaster enough time to remove or
>> rewrite the pidfile. Shouldn't we put a "sleep 1" in there before
>> the "if"?
> This is probably the best we can do.
Actually, the whole thing should only happen if we found a pre-existing
PIDFILE anyway. Will fix.
regards, tom lane