summaryrefslogtreecommitdiff
path: root/src/include/access/xlog_internal.h
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2012-08-08 23:58:49 +0100
committerSimon Riggs <simon@2ndQuadrant.com>2012-08-08 23:58:49 +0100
commit6f4b8a4f4f7a2d683ff79ab59d3693714b965e3d (patch)
tree32f13502ec48c0fd6c07af0b182eb372b95ded7c /src/include/access/xlog_internal.h
parent7c055d64a6c541f8480abd5833321e1661e10bce (diff)
Force archive_status of .done for xlogs created by dearchival/replication.
This prevents spurious attempts to archive xlog files after promotion of standby, a bug introduced by cascading replication patch in 9.2. Fujii Masao, simplified and extended to cover streaming by Simon Riggs
Diffstat (limited to 'src/include/access/xlog_internal.h')
-rw-r--r--src/include/access/xlog_internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h
index 3328a50faba..973c84f4f3b 100644
--- a/src/include/access/xlog_internal.h
+++ b/src/include/access/xlog_internal.h
@@ -264,6 +264,11 @@ extern pg_time_t GetLastSegSwitchTime(void);
extern XLogRecPtr RequestXLogSwitch(void);
/*
+ * Exported to support xlog archive status setting from WALReceiver
+ */
+extern void XLogArchiveForceDone(const char *xlog);
+
+/*
* These aren't in xlog.h because I'd rather not include fmgr.h there.
*/
extern Datum pg_start_backup(PG_FUNCTION_ARGS);