1
0
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:
Álvaro Herrera
2025-07-23 11:02:13 +02:00
parent 228c370868
commit 196063d676
2 changed files with 10 additions and 10 deletions

View File

@@ -316,16 +316,6 @@ typedef struct XLogRecData
uint32 len; /* length of rmgr data to include */ uint32 len; /* length of rmgr data to include */
} XLogRecData; } XLogRecData;
/*
* Recovery target action.
*/
typedef enum
{
RECOVERY_TARGET_ACTION_PAUSE,
RECOVERY_TARGET_ACTION_PROMOTE,
RECOVERY_TARGET_ACTION_SHUTDOWN,
} RecoveryTargetAction;
struct LogicalDecodingContext; struct LogicalDecodingContext;
struct XLogRecordBuffer; struct XLogRecordBuffer;

View File

@@ -40,6 +40,16 @@ typedef enum
RECOVERY_TARGET_TIMELINE_NUMERIC, RECOVERY_TARGET_TIMELINE_NUMERIC,
} RecoveryTargetTimeLineGoal; } RecoveryTargetTimeLineGoal;
/*
* Recovery target action.
*/
typedef enum
{
RECOVERY_TARGET_ACTION_PAUSE,
RECOVERY_TARGET_ACTION_PROMOTE,
RECOVERY_TARGET_ACTION_SHUTDOWN,
} RecoveryTargetAction;
/* Recovery pause states */ /* Recovery pause states */
typedef enum RecoveryPauseState typedef enum RecoveryPauseState
{ {