Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WrlG2-0002Ni-Sa for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Jun 2014 09:43:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WrlG2-0002NS-BA for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Jun 2014 09:43:50 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WrlG1-0002NM-LP for pgsql-bugs@postgresql.org; Tue, 03 Jun 2014 09:43:49 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WrlFu-0006n4-7d for pgsql-bugs@postgresql.org; Tue, 03 Jun 2014 09:43:47 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id A89114F0001; Tue, 3 Jun 2014 11:43:40 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-6.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC5EA4.dip0.t-ipconnect.de [93.220.94.164]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 811234E8003; Tue, 3 Jun 2014 11:43:37 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 0FBAF100923; Tue, 3 Jun 2014 11:43:37 +0200 (CEST) Date: Tue, 3 Jun 2014 11:43:37 +0200 From: Andres Freund To: Greg Stark Cc: Heikki Linnakangas , Maciek Sakrejda , PostgreSQL Bugs Subject: Re: BUG #10432: failed to re-find parent key in index Message-ID: <20140603094337.GJ24145@awork2.anarazel.de> References: <20140529160835.GO27914@awork2.anarazel.de> <20140529171934.GP27914@awork2.anarazel.de> <538839CF.5080007@vmware.com> <20140602174007.GF24145@awork2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -2.6 (--) 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-06-03 01:36:40 +0100, Greg Stark wrote: > On Mon, Jun 2, 2014 at 6:40 PM, Andres Freund wrote: > > > > Did you check whether all the necessary FPIs were generated? That'd be > > my very first suspect. > > Really? Shouldn't only the last one matter? All the other ones will be > overwritten later by later full page writes anywys, no? Also, i > thought this was pretty much underlying infrastructure that would be > pretty hard to get wrong in just one call site. Well, if we missed a single FPI somewhere - e.g. by accidentally not filling XLogRecData->buffer or by confusing which bkp block numbers refer to what (both happened during 9.4 development) you'd potentially get a torn page. And that'd very well explain such an error message. Your split record had only one backup block. I'd manually make sure all the other ones previously had some. You probably need to look in the nbt code to see which bkp block refers to what. 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