Re: [GENERAL] Template zero xid issue

From: Decibel! <decibel(at)decibel(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Gregory Stark <stark(at)enterprisedb(dot)com>, Keaton Adams <kadams(at)mxlogic(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] Template zero xid issue
Date: 2007-08-08 05:09:27
Message-ID: 20070808050927.GD25704@nasby.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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 decibel(at)decibel(dot)org
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeremy Drake 2007-08-08 05:18:32 Re: [mmoncure@gmail.com: Re: [GENERAL] array_to_set functions]
Previous Message Jaime Casanova 2007-08-08 03:39:05 Re: 76AC-752C-3D91 : CONFIRM from pgsql-hackers (subscribe)