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

From Alvaro Herrera
Subject Re: Default mode for shutdown
Date
Msg-id 1292425730-sup-5574@alvh.no-ip.org
Whole thread Raw
In response to Re: Default mode for shutdown  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Default mode for shutdown  (Robert Haas <robertmhaas@gmail.com>)
Re: Default mode for shutdown  (Jim Nasby <jim@nasby.net>)
Re: Default mode for shutdown  (Magnus Hagander <magnus@hagander.net>)
Re: Default mode for shutdown  (Josh Kupershmidt <schmiddy@gmail.com>)
List pgsql-hackers
Excerpts from Robert Haas's message of mié dic 15 12:03:06 -0300 2010:

> Certainly, if you have an environment where people are mostly logging
> into the database directly (not through a connection pooler) and they
> do a few important queries and then disconnect, smart is a better
> default.  But if you have an environment where (for whatever reason)
> long-lasting connections are common, smart is worse than useless.

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.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: hstores in pl/python
Next
From: Dimitri Fontaine
Date:
Subject: Re: hstores in pl/python