Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W2sfE-0008E0-TE for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Jan 2014 01:19:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W2sfD-0004hj-52 for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Jan 2014 01:19:31 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W2sei-00040X-8X for pgsql-bugs@postgresql.org; Tue, 14 Jan 2014 01:19:00 +0000 Received: from moutng.kundenserver.de ([212.227.126.187]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W2sef-0001sH-4v for pgsql-bugs@postgresql.org; Tue, 14 Jan 2014 01:18:59 +0000 Received: from anarazel.de (p54AF40E9.dip0.t-ipconnect.de [84.175.64.233]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0M7av1-1V7KaB1WI3-00xL2k; Tue, 14 Jan 2014 02:18:52 +0100 Received: by anarazel.de (Postfix, from userid 1000) id A25D810025E; Tue, 14 Jan 2014 02:18:51 +0100 (CET) Date: Tue, 14 Jan 2014 02:18:51 +0100 From: Andres Freund To: Tom Lane Cc: Heikki Linnakangas , Sergey Konoplev , matioli.matheus@gmail.com, pgsql-bugs , Maxim Boguk , =?utf-8?B?0JzQsNC60YHQuNC8INCf0LDQvdGH0LXQvdC60L4=?= , =?utf-8?B?0KHQuNC30L7QsiDQodC10YDQs9C10Lkg0J/QsNCy0LvQvtCy0LjRhw==?= Subject: Re: Hot standby 9.2.6 -> 9.2.6 PANIC: WAL contains references to invalid pages Message-ID: <20140114011851.GA20335@awork2.anarazel.de> References: <20140106134815.GE28320@alap2.anarazel.de> <52CABF3E.2050004@vmware.com> <17450.1389644346@sss.pgh.pa.us> <20140113202600.GB14861@awork2.anarazel.de> <52D44F40.1000803@vmware.com> <20140113210245.GD14861@awork2.anarazel.de> <52D45AD7.9080406@vmware.com> <20140113220440.GE5838@awork2.anarazel.de> <25048.1389662159@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <25048.1389662159@sss.pgh.pa.us> X-Provags-ID: V02:K0:oW5888QcGjlw8eSkQJpWNwni5FL328Pyh2lB8k39/CP z6Sv/4vglsujbkZdROZ+wOcwiTSNwrk627Ozxq1CHC4L1rqejh KOBmV40d3zmQSG9AtS6xLXd8eeiNkffd7JxOd9/gcZlvlWCBWr Tc+PZi2KD5srb1bmCMG9V3jRMccOhpZOdO1wTuURbHHEBTOALW 3CvUx4oL67ZOTzxGu0BaARgs19H55sn0jVueJP/RBRj/X5rvz7 C1rEHlrtr0IPUtuVuLLwZEevKOAI0QtKa/Lr8S4liksSCJjEEo wqJNR6So4inCtZtjHbyw3GMZPfPDnpS1eJqVMvmSdR8HPXB3H1 9sTa0sg5BTuPKWjJk4YP6lNtTy7eIfvbxXBlPHcIh X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2014-01-13 20:15:59 -0500, Tom Lane wrote: > Andres Freund 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs