postgresql/src/backend
Heikki Linnakangas 7ccefe8610 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
2013-03-07 12:33:24 +02:00
..
access Fix tli history file fetching, broken by the archive after crash recevery patch. 2013-03-07 12:33:24 +02:00
bootstrap Improve handling of ereport(ERROR) and elog(ERROR). 2013-01-13 18:40:09 -05:00
catalog Code beautification for object-access hook machinery. 2013-03-06 20:53:25 -05:00
commands Arrange to cache FdwRoutine structs in foreign tables' relcache entries. 2013-03-06 23:48:09 -05:00
executor Arrange to cache FdwRoutine structs in foreign tables' relcache entries. 2013-03-06 23:48:09 -05:00
foreign Arrange to cache FdwRoutine structs in foreign tables' relcache entries. 2013-03-06 23:48:09 -05:00
lib Update copyrights for 2013 2013-01-01 17:15:01 -05:00
libpq Update copyrights for 2013 2013-01-01 17:15:01 -05:00
main Update copyrights for 2013 2013-01-01 17:15:01 -05:00
nodes Add a materialized view relations. 2013-03-03 18:23:31 -06:00
optimizer Arrange to cache FdwRoutine structs in foreign tables' relcache entries. 2013-03-06 23:48:09 -05:00
parser Add a materialized view relations. 2013-03-03 18:23:31 -06:00
po Translation updates 2011-08-17 14:07:46 +03:00
port Update copyrights for 2013 2013-01-01 17:15:01 -05:00
postmaster Add a materialized view relations. 2013-03-03 18:23:31 -06:00
regex Add missing error check in regexp parser. 2013-02-27 10:40:03 -05:00
replication Cannot use WL_SOCKET_WRITEABLE without WL_SOCKET_READABLE. 2013-02-27 19:28:51 +02:00
rewrite Code beautification for object-access hook machinery. 2013-03-06 20:53:25 -05:00
snowball Update copyrights for 2013 2013-01-01 17:15:01 -05:00
storage Code beautification for object-access hook machinery. 2013-03-06 20:53:25 -05:00
tcop Add a materialized view relations. 2013-03-03 18:23:31 -06:00
tsearch Update copyrights for 2013 2013-01-01 17:15:01 -05:00
utils Arrange to cache FdwRoutine structs in foreign tables' relcache entries. 2013-03-06 23:48:09 -05:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Call check_keywords.pl in maintainer-check 2012-02-27 13:53:12 +02:00
Makefile Move relpath() to libpgcommon 2013-02-21 22:46:17 -03:00
nls.mk Split out XLog reading as an independent facility 2013-01-16 16:12:53 -03:00