Re: Failing start-up archive recovery at Standby mode in PG9.2.4

From: Amit Langote <amitlangote09(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Failing start-up archive recovery at Standby mode in PG9.2.4
Date: 2013-04-26 07:59:24
Message-ID: 1366963164637-5753358.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

What would happen if a recycled segment gets assigned a newer timeline than
the one we are currently recovering from? In the reported erroneous
behavior, that is what happens causing XLogFileReadAnyTLI() to return such
bogus segment causing the error. Since, expectedTLIs contains a newer
timeline at its head, and if such a wrongly recycled (that is one bearing a
newer timeline than curFileTLI) segment exists in pg_xlog,
XLogFileReadAnyTLI() would return fd of that segment itself causing the
error in question. In next retry, the same thing would happen and prevent
standby startup from proceeding any further.

So, should we also look at the segment recycling code to see how it names
the recycled segments (what timelineID does it use) ? For example, in
CreateRestartPoint() where segments are recycled?

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Failing-start-up-archive-recovery-at-Standby-mode-in-PG9-2-4-tp5753110p5753358.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2013-04-26 08:10:48 Re: Failing start-up archive recovery at Standby mode in PG9.2.4
Previous Message Dimitri Fontaine 2013-04-26 07:39:35 Re: event trigger API documentation?