aboutsummaryrefslogtreecommitdiff
path: root/src/include/miscadmin.h
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2008-04-23 13:44:59 +0000
committerMagnus Hagander <magnus@hagander.net>2008-04-23 13:44:59 +0000
commitc979a1fefafcc83553bf218c7f2270cad77ea31d (patch)
tree7bbf70239a28d7bd5bf239fd93ebc1f37a85c39e /src/include/miscadmin.h
parentcf23b75b4dce75151df7164ed72263e66b758ae9 (diff)
downloadpostgresql-c979a1fefafcc83553bf218c7f2270cad77ea31d.tar.gz
postgresql-c979a1fefafcc83553bf218c7f2270cad77ea31d.zip
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
Diffstat (limited to 'src/include/miscadmin.h')
-rw-r--r--src/include/miscadmin.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h
index d06b34be437..3d1511e58a5 100644
--- a/src/include/miscadmin.h
+++ b/src/include/miscadmin.h
@@ -13,7 +13,7 @@
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.201 2008/02/20 22:46:24 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/miscadmin.h,v 1.202 2008/04/23 13:44:59 mha Exp $
*
* NOTES
* some of the information in this file should be moved to other files.
@@ -330,4 +330,8 @@ extern void ValidatePgVersion(const char *path);
extern void process_shared_preload_libraries(void);
extern void process_local_preload_libraries(void);
+/* in access/transam/xlog.c */
+extern bool BackupInProgress(void);
+extern void CancelBackup(void);
+
#endif /* MISCADMIN_H */