summaryrefslogtreecommitdiff
path: root/src/include/access/xlog_internal.h
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2014-11-25 20:13:30 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2014-11-25 20:13:30 +0000
commitaedccb1f6fef988af1d1a25b78151f3773954b4c (patch)
treec8c871067acee2eab8c838dad2449a0bf33ab975 /src/include/access/xlog_internal.h
parentbb1b8f694ad2efc35ebae2acfa2c18a2197b82a1 (diff)
action_at_recovery_target recovery config option
action_at_recovery_target = pause | promote | shutdown Petr Jelinek Reviewed by Muhammad Asif Naeem, Fujji Masao and Simon Riggs
Diffstat (limited to 'src/include/access/xlog_internal.h')
-rw-r--r--src/include/access/xlog_internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h
index 423ef4d7fa0..85b3fe76bb6 100644
--- a/src/include/access/xlog_internal.h
+++ b/src/include/access/xlog_internal.h
@@ -215,6 +215,16 @@ typedef struct XLogRecData
} XLogRecData;
/*
+ * Recovery target action.
+ */
+typedef enum
+{
+ RECOVERY_TARGET_ACTION_PAUSE,
+ RECOVERY_TARGET_ACTION_PROMOTE,
+ RECOVERY_TARGET_ACTION_SHUTDOWN,
+} RecoveryTargetAction;
+
+/*
* Method table for resource managers.
*
* This struct must be kept in sync with the PG_RMGR definition in