"Nigel J. Andrews" <nandrews@investsystems.co.uk> writes:
> Only cron can't handle some of those cases listed, but then one could always
> patch one's own local installation of pg_ctl etc. to run things at startup and
> shutdown.
If you are using a typical init script setup, it's easy to add
additional operations to the init script's start and stop actions.
I'm a tad suspicious of adding on-shutdown actions anyway, as there's
little guarantee they would get done (consider system crash, postmaster
crash, etc).
regards, tom lane