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
pull/236/head
Álvaro Herrera 2 months ago
parent 228c370868
commit 196063d676
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE
  1. 10
      src/include/access/xlog_internal.h
  2. 10
      src/include/access/xlogrecovery.h

@ -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
{

Loading…
Cancel
Save