[postgis-devel] Interrupt on SIGTERM

Christoph Berg myon at debian.org
Tue Feb 23 02:34:50 PST 2021


Re: Darafei "Komяpa" Praliaskouski
> We should follow the signals in the Postgres doc:
> https://www.postgresql.org/docs/13/server-shutdown.html
> 
> If someone wants fast shutdown they should issue a fast shutdown command
> which will trigger SIGINT which we handle. Recommended course of action is
> to change the shutdown method to fast rather than hacking postgis to
> support fast shutdown in smart mode.

The list of signals there is the set that the postmaster accepts.
Individual backends have separate semantics. If you send a SIGINT to
the postmaster, it doesn't mean the same signal is used to propagate
the shutdown request to the backends running the actual queries.

Christoph


More information about the postgis-devel mailing list