1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-21 10:42:50 +03:00

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
This commit is contained in:
Simon Riggs
2014-11-25 20:13:30 +00:00
parent bb1b8f694a
commit aedccb1f6f
4 changed files with 159 additions and 19 deletions

View File

@@ -214,6 +214,16 @@ typedef struct XLogRecData
uint32 len; /* length of rmgr data to include */
} XLogRecData;
/*
* Recovery target action.
*/
typedef enum
{
RECOVERY_TARGET_ACTION_PAUSE,
RECOVERY_TARGET_ACTION_PROMOTE,
RECOVERY_TARGET_ACTION_SHUTDOWN,
} RecoveryTargetAction;
/*
* Method table for resource managers.
*