On Tue, Dec 5, 2017 at 10:03 AM, Craig Ringer <cr...@2ndquadrant.com> wrote: > pglogical sets up its own handler 'handle_sigterm'. However, it now does > much the same as src/backend/tcop/postgres.c's 'die' function, just without > the single-user mode checks.
Documentation shows a simple example of that: https://www.postgresql.org/docs/devel/static/source-conventions.html > IMO it's silly to customise them, and a bad example. I don't agree. It is not silly to have background workers being able to take clean up actions and have their own tracking with some sig_atomic_t flags. -- Michael