diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2010-03-19 11:05:15 +0000 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2010-03-19 11:05:15 +0000 |
commit | 3cdafe40e73c0c565e54fdaf69fe35f294906693 (patch) | |
tree | 3def408cf1c3d0377c6c9b470e2f7cd0cdccfd9e /src/include/access/xlog.h | |
parent | 5c73ae17d18a424fe63c0a1d8b674e9f22800572 (diff) |
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.
Diffstat (limited to 'src/include/access/xlog.h')
-rw-r--r-- | src/include/access/xlog.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index 58139112501..9a6cd107614 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -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 */ |