Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VdGmM-0008HE-Rg for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Nov 2013 09:49:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VdGmM-0003EP-8X for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Nov 2013 09:49:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VdGmL-0003EJ-Mj for pgsql-bugs@postgresql.org; Mon, 04 Nov 2013 09:49:01 +0000 Received: from moutng.kundenserver.de ([212.227.126.187]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VdGmJ-0002Nt-Jf for pgsql-bugs@postgresql.org; Mon, 04 Nov 2013 09:49:01 +0000 Received: from anarazel.de (p5DDC6D42.dip0.t-ipconnect.de [93.220.109.66]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0Le9EG-1W0TYs392q-00q51L; Mon, 04 Nov 2013 10:48:43 +0100 Received: by anarazel.de (Postfix, from userid 1000) id 15725100AA1; Mon, 4 Nov 2013 10:48:42 +0100 (CET) Date: Mon, 4 Nov 2013 10:48:42 +0100 From: Andres Freund To: Sergey Konoplev Cc: Simon Riggs , pgsql-bugs , Maxim Boguk , =?utf-8?B?0JzQsNC60YHQuNC8INCf0LDQvdGH0LXQvdC60L4=?= , =?utf-8?B?0KLQvtC70YHRgtC10L3QutC+INCY0LvRjNGP?= , =?utf-8?B?0KHQuNC30L7QsiDQodC10YDQs9C10Lkg0J/QsNCy0LvQvtCy0LjRhw==?= , =?utf-8?B?0KHQvtCx0L7Qu9C10LIg0JLQuNGC0LDQu9C40Lkg0JDQvdCw0YLQvtC70Yw=?= =?utf-8?B?0LXQstC40Yc=?= Subject: Re: Completely broken replica after PANIC: WAL contains references to invalid pages Message-ID: <20131104094842.GH3567@awork2.anarazel.de> References: <675b7cee-b7f0-4e32-8e34-1efaf3ca5fe9@email.android.com> <20130329213834.GA26976@awork2.anarazel.de> <20130330172144.GI28736@alap2.anarazel.de> <20130402101012.GB2415@alap2.anarazel.de> <20130402182644.GJ2415@alap2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Provags-ID: V02:K0:ZKLfFzASz+cQeDG0pAQDgYPSqvJMP2gDPbvUIkszR73 80Cddi/wEgInTa5T1l9ujFVskwWmd2ZUY1eT9ei4KVehPglRU8 h4FGrePFlv0J8iTi910w3rQLsu+ZR+1lVw9dcP5n//6oSF8vIh 1c2HEi196GfufDqBj9LFY9jYesTJk2nek4yGZNd4VH5gIv4sK1 O6l9t9li9CqbIkj5/j3oQ6Xxmc4hxO+APo/VEBXnESxGwAMx4e urXeOiG3mcVSOOEnf3lK/lGGrkwxc9TNX2JDFqvou/cClmWAxx JsQBw9hrowWhlHD7haIGXHBhqjvZR0LSEQ1/KfGtsFRwymF1AT dbwZ5KM2yFRpj4PjEEnkFjM30U4mhcDiaE2mOShLy 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 2013-11-01 00:35:18 -0700, Sergey Konoplev wrote: > On Tue, Apr 2, 2013 at 11:26 AM, Andres Freund wrote: > > The attached patch fixes this although I don't like the way it knowledge of the > > point up to which StartupSUBTRANS zeroes pages is handled. > > So, after half a year the same failure has happened again on the same > replica, but now patched with the Andres' patch (9.2.4 + the patch) > that was supposed to fix it. I think that's actually a different bug - what the patch was fixing was the clog/subtrans errors, not the "reference to invalid pages". I've submitted a fix for at least one cause causing that independently from this bug which is included in 9.2.5 (17fa4c321ccf9693de406faffe6b235e949aa25f). Note thought that that fix needed a fix iff using a cassert enabled build (4da24f12e63313b7dbb6b3e3d0317e04045df636) which is *not* in 9.2.5. 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