Re: Default mode for shutdown - Mailing list pgsql-hackers

From Josh Kupershmidt
Subject Re: Default mode for shutdown
Date
Msg-id AANLkTimaMJywroj=Uj3y5iyn_tbCzj2sye6hLBjUBh7z@mail.gmail.com
Whole thread Raw
In response to Re: Default mode for shutdown  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: Default mode for shutdown  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On Wed, Dec 15, 2010 at 10:11 AM, Alvaro Herrera
<alvherre@commandprompt.com> wrote:
> It occurs to me that we may need a new mode, which disconnects sessions
> that are not in a transaction (or as soon as they are) but leaves
> in-progress transactions alone; this could be the new default.  Of
> course, this is much more difficult to implement than the current modes.

I like this idea, if it's feasible. Might I also suggest that the
smart-mode shutdown give a HINT to the user that he can forcibly kill
off existing sessions using -m fast. Right now, we  show something
like this:

$ pg_ctl -D PGDATA stop
waiting for server to shut down....
........................................................... failed
pg_ctl: server does not shut down

And it's not immediately obvious to the user why the server didn't
shut down, or how to fix things.

Josh


pgsql-hackers by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: Extensions, patch v18 (merge against master, bitrot-only-fixes)
Next
From: Andres Freund
Date:
Subject: Re: directory archive format for pg_dump