Re: Hot standby 9.2.6 -> 9.2.6 PANIC: WAL contains references to invalid pages - Mailing list pgsql-bugs

From Andres Freund
Subject Re: Hot standby 9.2.6 -> 9.2.6 PANIC: WAL contains references to invalid pages
Date
Msg-id 20140114011851.GA20335@awork2.anarazel.de
Whole thread Raw
In response to Re: Hot standby 9.2.6 -> 9.2.6 PANIC: WAL contains references to invalid pages  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Hot standby 9.2.6 -> 9.2.6 PANIC: WAL contains references to invalid pages
List pgsql-bugs
On 2014-01-13 20:15:59 -0500, Tom Lane wrote:
> Andres Freund <andres@2ndquadrant.com> writes:
> > On 2014-01-13 23:29:59 +0200, Heikki Linnakangas wrote:
> >> I don't think that saves us. standbyMode can be STANDBY_SNAPSHOT_READY,
> >> before we reach consistency. Adding a check for reachedConsistency, though,
> >> ought to fix it.
>
> > Maybe we should just put LocalHotStandbyActive into xlog_internal.h?
> > That'd be enough for the startup process. Or alternatively add a check
> > for EnableHotStandby into HotStandbyActive() so we don't take the
> > spinlock if it's not enabled?
>
> After a little bit of research, I propose that we add a function like
> this in xlog.c:

> Any objections?  Bikeshedding on the name?

Fine with me.

Greetings,

Andres Freund

--
 Andres Freund                       http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Hot standby 9.2.6 -> 9.2.6 PANIC: WAL contains references to invalid pages
Next
From: Tom Lane
Date:
Subject: Re: Hot standby 9.2.6 -> 9.2.6 PANIC: WAL contains references to invalid pages