Re: Shutdown term - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Shutdown term
Date
Msg-id 20904.984514009@sss.pgh.pa.us
Whole thread Raw
In response to Re: Shutdown term  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Shutdown term  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
>     The connection was terminated.
> And make the postmaster print out
>     The system is shutting down.
> before it sends out the SIGTERM's.

Unfortunately the postmaster is in no position to send any message to
the individual clients.

Maybe we should forget the idea of having a single message to cover
both cases, and instead provide some flag in shared memory that the
postmaster can set before it sends out SIGTERMs.  Then the backends
would actually know why they got a SIGTERM and could emit
more-appropriate messages.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Ken Hirsch"
Date:
Subject: Re: WAL & SHM principles
Next
From: Bruce Momjian
Date:
Subject: Re: Shutdown term