Re: kill -KILL: What happens?

Поиск
Список
Период
Сортировка
От Florian Pflug
Тема Re: kill -KILL: What happens?
Дата
Msg-id 0BC05187-20E6-4846-9052-1E343FEB5BE2@phlo.org
обсуждение исходный текст
Ответ на Re: kill -KILL: What happens?  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: kill -KILL: What happens?  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Jan14, 2011, at 17:22 , Kevin Grittner wrote:

> Alvaro Herrera <alvherre@commandprompt.com> wrote:
> 
>> If postmaster dies, and then another backend crashes, then your
>> backend running "your honking big query" could run across
>> corrupted state and then you'd be in serious trouble.
> 
> Worst of all, it could give bogus results without error.  I really
> don't see a production use case for letting backends continue after
> postmaster failure -- unless you only kinda, sorta care whether
> committed data is actually retrievable or reported data is actually
> accurate.

I gather that the behaviour we want is for normal backends to exit
once the postmaster is gone, and for utility processes (bgwriter, ...)
to exit once all the backends are gone.

The test program I posted in this thread proves that FIFOs and select()
can be used to implement this, if we're ready to check for EOF on the
socket in CHECK_FOR_INTERRUPTS() every few seconds. Is this a viable
route to take?

best regards,
Florian Pflug



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

Предыдущее
От: Stefan Kaltenbrunner
Дата:
Сообщение: Maintenance downtime for commitfest.postgresql.org and media.postgresql.org
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Add support for logging the current role