summaryrefslogtreecommitdiff
path: root/src/include/catalog/pg_control.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-08-06 03:53:44 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-08-06 03:53:44 +0000
commit704ddaaa094063f4c5beb2f68375726b37f162f5 (patch)
treeefe430ad85dc54372e03a7ef8186785efcf46900 /src/include/catalog/pg_control.h
parentc0dc166adc2d2e545ba1cacb7dfce1c013a92fef (diff)
downloadpostgresql-704ddaaa094063f4c5beb2f68375726b37f162f5.tar.gz
Add support for forcing a switch to a new xlog file; cause such a switch
to happen automatically during pg_stop_backup(). Add some functions for interrogating the current xlog insertion point and for easily extracting WAL filenames from the hex WAL locations displayed by pg_stop_backup and friends. Simon Riggs with some editorialization by Tom Lane.
Diffstat (limited to 'src/include/catalog/pg_control.h')
-rw-r--r--src/include/catalog/pg_control.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/catalog/pg_control.h b/src/include/catalog/pg_control.h
index 02c51dd9f3..86722953dd 100644
--- a/src/include/catalog/pg_control.h
+++ b/src/include/catalog/pg_control.h
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/catalog/pg_control.h,v 1.29 2006/04/04 22:39:59 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/catalog/pg_control.h,v 1.30 2006/08/06 03:53:44 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -47,6 +47,7 @@ typedef struct CheckPoint
#define XLOG_CHECKPOINT_SHUTDOWN 0x00
#define XLOG_CHECKPOINT_ONLINE 0x10
#define XLOG_NEXTOID 0x30
+#define XLOG_SWITCH 0x40
/* System status indicator */