Mark Warner <hammerhed@theitspecialists.net> writes:
> Is it possible, advisable, or terribly bad to shutdown a pgsql
> database with the do.maintenance script running?
You didn't say exactly what that script is doing ... but in general
PG queries can be shut down safely. What I'd do is kill the client
program running the script and then send SIGINT to the backend it's
connected to. Shutting down the whole database is the hard way.
regards, tom lane