Prevent shutdown in normal mode if online backup is running, and
authorMagnus Hagander <magnus@hagander.net>
Wed, 23 Apr 2008 13:44:59 +0000 (13:44 +0000)
committerMagnus Hagander <magnus@hagander.net>
Wed, 23 Apr 2008 13:44:59 +0000 (13:44 +0000)
commita0ae1e6171be3d7f5f09deb766fc6733a278fc64
tree4019e80cb3516c8f0ad2d8208cd79caf3eb3bdc9
parentee3594722f72257e7d6c582f7e053e57674886e4
Prevent shutdown in normal mode if online backup is running, and
have pg_ctl warn about this.

Cancel running online backups (by renaming the backup_label file,
thus rendering the backup useless) when shutting down in fast mode.

Laurenz Albe
doc/src/sgml/ref/pg_ctl-ref.sgml
doc/src/sgml/runtime.sgml
src/backend/access/transam/xlog.c
src/backend/postmaster/postmaster.c
src/bin/pg_ctl/pg_ctl.c
src/include/miscadmin.h