Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W2oZ0-0007Jc-VR for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Jan 2014 20:56:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W2oZ0-0001rU-91 for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Jan 2014 20:56:50 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W2oYx-0001o3-TE for pgsql-bugs@postgresql.org; Mon, 13 Jan 2014 20:56:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W2oYv-0005Mu-Is for pgsql-bugs@postgresql.org; Mon, 13 Jan 2014 20:56:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s0DKuNDM018475; Mon, 13 Jan 2014 15:56:23 -0500 From: Tom Lane To: Heikki Linnakangas cc: Andres Freund , Sergey Konoplev , matioli.matheus@gmail.com, pgsql-bugs , Maxim Boguk , =?UTF-8?B?0JzQsNC60YHQuNC8INCf0LDQvdGH0LXQvdC60L4=?= , =?UTF-8?B?0KHQuNC30L7QsiDQodC10YDQs9C10Lkg0J/QsA==?= =?UTF-8?B?0LLQu9C+0LLQuNGH?= Subject: Re: Hot standby 9.2.6 -> 9.2.6 PANIC: WAL contains references to invalid pages In-reply-to: <52D44F40.1000803@vmware.com> 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> Comments: In-reply-to Heikki Linnakangas message dated "Mon, 13 Jan 2014 22:40:32 +0200" Date: Mon, 13 Jan 2014 15:56:23 -0500 Message-ID: <18474.1389646583@sss.pgh.pa.us> X-Pg-Spam-Score: -2.0 (--) 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 Heikki Linnakangas writes: > With RBM_NORMAL_ZERO_OK, AFAICS we're talking about a tiny patch to > XLogReadBufferExtended. bufmgr.c doesn't need to do anything about the > new mode, as it's XLogReadBuffer that does the the check for zero pages. > Per attached patch (for demonstration purposes only, you also need to > add the new mode to the header file and adjust comments). That looks like it will still log the page as invalid if it's past EOF, which I think we don't want. Did you want to finish this off and commit, or were you just passing what you had to me? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs