Re: kill -KILL: What happens? - Mailing list pgsql-hackers

From Florian Pflug
Subject Re: kill -KILL: What happens?
Date
Msg-id 0BC05187-20E6-4846-9052-1E343FEB5BE2@phlo.org
Whole thread Raw
In response to Re: kill -KILL: What happens?  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: kill -KILL: What happens?  (Robert Haas <robertmhaas@gmail.com>)
List 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 by date:

Previous
From: Stefan Kaltenbrunner
Date:
Subject: Maintenance downtime for commitfest.postgresql.org and media.postgresql.org
Next
From: Andrew Dunstan
Date:
Subject: Re: Add support for logging the current role