Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> Alvaro Herrera wrote:
>> Tom Lane wrote:
>>> delay. I just stuck a fixed 100msec delay into the accept-failed code
>>> path.
>>
>> Seems worth mentioning that bgwriter sleeps 1 sec in case of failure.
>> (And so does the autovac code I'm currently looking at).
> There is probably a good case for a shorter delay in postmaster, though.
Yeah, that's what I thought. We don't really care if either bgwriter or
autovac goes AWOL for a little while, but if the postmaster's asleep
then nobody can connect.
regards, tom lane