Re: kill -KILL: What happens?

Поиск
Список
Период
Сортировка
От Florian Pflug
Тема Re: kill -KILL: What happens?
Дата
Msg-id 658E3A8C-B1F8-4DD8-BCBA-3855582FBC58@phlo.org
обсуждение исходный текст
Ответ на Re: kill -KILL: What happens?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: kill -KILL: What happens?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Jan14, 2011, at 01:32 , Tom Lane wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>> On Thu, Jan 13, 2011 at 3:37 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> Killing active sessions when it's not absolutely necessary is not an
>>> asset.
> 
>> That's a highly arguable point and I certainly don't agree with it.
> 
> Your examples appear to rely on the assumption that background processes
> exit instantly when the postmaster dies.  Which they should not.

Even if they stay around, no new connections will be possible once the
postmaster is gone. So this really comes down to what somebody perceives
to be a bigger problem - new connections failing or existing connections
being terminated.

I don't believe there's one right answer to that.

Assume postgres is driving a website, and the postmaster crashes shortly
after a pg_dump run started. You probably won't want your website to be
offline while pg_dump is finishing its backup.

If, on the other hand, your data warehousing database is running a
multi-hour query, you might prefer that query to finish, even at the price
of not being able to accept new connections.

So maybe there should be a GUC for this?

best regards,
Florian Pflug



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: kill -KILL: What happens?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: kill -KILL: What happens?