pgsql: Further fix to the mode where we enter archive recovery after cr - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Further fix to the mode where we enter archive recovery after cr
Date
Msg-id E1UDY9h-0003Zl-Dk@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Further fix to the mode where we enter archive recovery after crash recovery.

I missed to returns in the middle of ReadRecord function in my previous fix.
If a WAL file was not found at all during crash recovery, XLogPageRead would
return 'false', and ReadRecord would return without entering archive recovery.

9.2 only. In master, the code is structured differently and does not have this
problem.

Kyotaro HORIGUCHI, Mitsumasa KONDO and me.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/d009f9036d62762b6a261055e7417ae911233853

Modified Files
--------------
src/backend/access/transam/xlog.c |   25 +++++++++++++++++++++++--
1 files changed, 23 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Arrange to cache FdwRoutine structs in foreign tables' relcache
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix tli history file fetching, broken by the archive after crash