mirror of
https://github.com/postgres/postgres.git
synced 2025-08-08 06:02:22 +03:00
Move enum RecoveryTargetAction to xlogrecovery.h
Commit 70e81861fa
split out xlogrecovery.c/h and moved some enums
related to recovery targets to xlogrecovery.h. However, it seems that
the enum RecoveryTargetAction was inadvertently left out by that commit.
This commit moves it to xlogrecovery.h for consistency.
Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/20240904.173013.1132986940678039655.horikyota.ntt@gmail.com
This commit is contained in:
@@ -316,16 +316,6 @@ 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;
|
||||
|
||||
struct LogicalDecodingContext;
|
||||
struct XLogRecordBuffer;
|
||||
|
||||
|
@@ -40,6 +40,16 @@ typedef enum
|
||||
RECOVERY_TARGET_TIMELINE_NUMERIC,
|
||||
} RecoveryTargetTimeLineGoal;
|
||||
|
||||
/*
|
||||
* Recovery target action.
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
RECOVERY_TARGET_ACTION_PAUSE,
|
||||
RECOVERY_TARGET_ACTION_PROMOTE,
|
||||
RECOVERY_TARGET_ACTION_SHUTDOWN,
|
||||
} RecoveryTargetAction;
|
||||
|
||||
/* Recovery pause states */
|
||||
typedef enum RecoveryPauseState
|
||||
{
|
||||
|
Reference in New Issue
Block a user