On Tue, Aug 07, 2007 at 06:46:05PM -0400, Tom Lane wrote:
> I'm tempted to stop accepting connections once we start the shutdown
> checkpoint (ie, tell the bgwriter to shut down).  This would at least
> limit the width of the window in which incoming connections get ignored.
> We could also close the sockets at that point, so that clients get an
> immediate failure instead of hanging for awhile --- then it will look
> to them like the postmaster is already gone.

Well, we're effectively shutdown at that point... I don't see much
benefit to sending a "We're in the middle of shutting down" message over
"couldn't connect to the server", which is what the client would have
gotten anyway in very short order.
-- 
Decibel!, aka Jim Nasby                        [EMAIL PROTECTED]
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)

Attachment: pgpKgVHQer2Ah.pgp
Description: PGP signature

Reply via email to