Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W2pd5-0001TL-HF for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Jan 2014 22:05:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W2pd5-0003XT-0N for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Jan 2014 22:05:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W2pd3-0003Ww-VW for pgsql-bugs@postgresql.org; Mon, 13 Jan 2014 22:05:06 +0000 Received: from moutng.kundenserver.de ([212.227.126.171]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W2pd1-0003sJ-9w for pgsql-bugs@postgresql.org; Mon, 13 Jan 2014 22:05:05 +0000 Received: from anarazel.de (p54AF4121.dip0.t-ipconnect.de [84.175.65.33]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MKLPq-1W2Hex16zm-002B4G; Mon, 13 Jan 2014 23:04:41 +0100 Received: by anarazel.de (Postfix, from userid 1000) id 9B841105A05; Mon, 13 Jan 2014 23:04:40 +0100 (CET) Date: Mon, 13 Jan 2014 23:04:40 +0100 From: Andres Freund To: Heikki Linnakangas Cc: Tom Lane , 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: <20140113220440.GE5838@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52D45AD7.9080406@vmware.com> X-Provags-ID: V02:K0:eJTlqKwS8EDXMEvY54TnLWv1pE2+8s/l7x5oG6NEmNo Wdt4VZdP3csUwZ8WTs+97//EChdt9jjnwbXT3PlbPdcSMIKD3D 2gGsdyMU/M4wefik8Gt7tfiFnRzuUuUZvSNe0MEHT+dKi3sbLE /mi69qOQazjIPbjbz1NdmE7+v/4Ndb8HDqFnTTDsY4GQGpW5bd 189orr2rBtJPftOpO1eoVuJWf3oSGw4eFwirVq5Y2JOK/hWX1x PathjRFKRennT5CxCTPBD44h+8HIbKdmMonStUdJl27ZZVzsMJ Vxj2/N5Rlg8b8eAYIk8J3lDYmfTuHyxLC/+nUwJPUt9NSvdw2G go10Cop3aca+jSUtGd3ek9tnT4HmiA23DW5kXym1a 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 23:29:59 +0200, Heikki Linnakangas wrote: > On 01/13/2014 11:02 PM, Andres Freund wrote: > >Now, you could argue that that shouldn't be the case because we're only > >entering that codepath once STANDBY_SNAPSHOT_READY and you might be > >right... > > 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? 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