diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-09-26 22:36:30 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-09-26 22:36:30 +0000 |
commit | f18dfc48356945d684fe74abaa7d5f5033b2af46 (patch) | |
tree | b99ea3cd099a7c1225be0433d9744ed20dcc3f6a /src/include/access/xlog.h | |
parent | 80963144ad67263222d2de8881e0f4fbf1b50e12 (diff) |
Minor improvements in backup and recovery:
- create a separate archive_mode GUC, on which archive_command is dependent
- %r option in recovery.conf sends last restartpoint to recovery command
- %r used in pg_standby, updated README
- minor other code cleanup in pg_standby
- doc on Warm Standby now mentions pg_standby and %r
- log_restartpoints recovery option emits LOG message at each restartpoint
- end of recovery now displays last transaction end time, as requested
by Warren Little; also shown at each restartpoint
- restart archiver if needed to carry away WAL files at shutdown
Simon Riggs
Diffstat (limited to 'src/include/access/xlog.h')
-rw-r--r-- | src/include/access/xlog.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index 372a43797a4..f4727377fdc 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.83 2007/09/05 18:10:48 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.84 2007/09/26 22:36:30 tgl Exp $ */ #ifndef XLOG_H #define XLOG_H @@ -138,13 +138,15 @@ extern XLogRecPtr XactLastRecEnd; /* these variables are GUC parameters related to XLOG */ extern int CheckPointSegments; extern int XLOGbuffers; +extern bool XLogArchiveMode; extern char *XLogArchiveCommand; extern int XLogArchiveTimeout; extern char *XLOG_sync_method; extern const char XLOG_sync_method_default[]; extern bool log_checkpoints; -#define XLogArchivingActive() (XLogArchiveCommand[0] != '\0') +#define XLogArchivingActive() (XLogArchiveMode) +#define XLogArchiveCommandSet() (XLogArchiveCommand[0] != '\0') #ifdef WAL_DEBUG extern bool XLOG_DEBUG; |