aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/xlog_internal.h
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-03-07 12:18:41 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-03-07 12:33:24 +0200
commit7ccefe8610db8b339bad2c5b51abc07448a32947 (patch)
tree0c23e86efcc76001918ef8e643121b517d38830f /src/include/access/xlog_internal.h
parent1908abc4a37d397356c9cdf0fd31c33a86281d63 (diff)
downloadpostgresql-7ccefe8610db8b339bad2c5b51abc07448a32947.tar.gz
postgresql-7ccefe8610db8b339bad2c5b51abc07448a32947.zip
Fix tli history file fetching, broken by the archive after crash recevery patch.
If we were about to enter archive recovery after crash recovery, we scanned the archive for the latest tli history file, and set the recovery target timeline to that. However, when we actually tried to read the history file, we would not fetch the file from the archive, because we were not in archive recovery yet. To fix, make readTimeLineHistory and existsTimeLineHistory to always fetch the file from archive if archive recovery is requested, even if we're not in archive recovery yet. Backpatch to 9.2. Mitsumasa KONDO
Diffstat (limited to 'src/include/access/xlog_internal.h')
-rw-r--r--src/include/access/xlog_internal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h
index c996c3c3ad8..351bb31d56c 100644
--- a/src/include/access/xlog_internal.h
+++ b/src/include/access/xlog_internal.h
@@ -263,6 +263,7 @@ extern void GetOldestRestartPoint(XLogRecPtr *oldrecptr, TimeLineID *oldtli);
* Exported for the functions in timeline.c and xlogarchive.c. Only valid
* in the startup process.
*/
+extern bool ArchiveRecoveryRequested;
extern bool InArchiveRecovery;
extern bool StandbyMode;
extern char *recoveryRestoreCommand;