mirror of
https://github.com/postgres/postgres.git
synced 2025-08-27 07:42:10 +03:00
Adjust comment in .history file to match recovery target specified. Comment
present since 8.0 was never fully meaningful, since two recovery targets cannot be specified. Refactor recovery target type to make this change and associated code easier to understand. No change in function. Bug report arising from internal support question.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.103 2010/02/26 02:01:21 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.104 2010/03/19 11:05:15 sriggs Exp $
|
||||
*/
|
||||
#ifndef XLOG_H
|
||||
#define XLOG_H
|
||||
@@ -172,6 +172,17 @@ extern HotStandbyState standbyState;
|
||||
|
||||
#define InHotStandby (standbyState >= STANDBY_SNAPSHOT_PENDING)
|
||||
|
||||
/*
|
||||
* Recovery target type.
|
||||
* Only set during a Point in Time recovery, not when standby_mode = on
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
RECOVERY_TARGET_UNSET,
|
||||
RECOVERY_TARGET_XID,
|
||||
RECOVERY_TARGET_TIME
|
||||
} RecoveryTargetType;
|
||||
|
||||
extern XLogRecPtr XactLastRecEnd;
|
||||
|
||||
/* these variables are GUC parameters related to XLOG */
|
||||
|
Reference in New Issue
Block a user