Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wq2sv-0006Ls-BL for pgsql-bugs@arkaria.postgresql.org; Thu, 29 May 2014 16:08:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wq2su-0002Qw-Qx for pgsql-bugs@arkaria.postgresql.org; Thu, 29 May 2014 16:08:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wq2su-0002Qq-5m for pgsql-bugs@postgresql.org; Thu, 29 May 2014 16:08:52 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wq2sl-0007De-JT for pgsql-bugs@postgresql.org; Thu, 29 May 2014 16:08:51 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 5E036500001; Thu, 29 May 2014 18:08:40 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC7DA2.dip0.t-ipconnect.de [93.220.125.162]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 3F90E4E8007; Thu, 29 May 2014 18:08:36 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 9BECF100DB2; Thu, 29 May 2014 18:08:35 +0200 (CEST) Date: Thu, 29 May 2014 18:08:35 +0200 From: Andres Freund To: Maciek Sakrejda Cc: Heikki Linnakangas , pgsql-bugs@postgresql.org Subject: Re: BUG #10432: failed to re-find parent key in index Message-ID: <20140529160835.GO27914@awork2.anarazel.de> References: <20140523175217.2692.50568@wrigleys.postgresql.org> <5384D42A.8070904@vmware.com> 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 Hi, On 2014-05-29 08:56:10 -0700, Maciek Sakrejda wrote: > On Tue, May 27, 2014 at 11:06 AM, Heikki Linnakangas < > hlinnakangas@vmware.com> wrote: > > > I would be interested in seeing the structure of the index, if there is > > anything else corrupt in there. > > > It's an index on (integer, timestamp without time zone). Unfortunately, > it's a customer DB, so getting more direct access may be problematic. Is > there metadata we can gather about it that could be useful? > > Also, what WAL actions led to the error? Try something like: > > > > pg_xlogdump -r btree -p $PGDATA -s 339/65000000 | grep 1665279 > > > > and search that for any records related to the failed split, e.g. grepping > > further for the block numbers in the error message. I wonder why the failure didn't show the record that triggered the error? This is on a primary? If so, my guess is that this happened during the 'incomplete action' cleanup. Do you have a better explanation Heikki? > Also, it turned out that this was a persistent problem--a couple of > replicas failed the same way. I then worked with the customer and had them > re-create the index, and that seems to have resolved the issue. My > colleague Greg Stark has taken over the forensic investigation here--he may > have more to add. My hope^Wguess is that this is a symptom of 1a917ae8610d44985fd2027da0cfe60ccece9104 (not released) or even 9a57858f1103b89a5674f0d50c5fe1f756411df6 (9.3.4). Once the hot chain is corrupted such errors could occur When were those standbys made? Did the issue occur on the primary as well? Greetings, Andres Freund PS: wal-e's intersperesed output is rather annoying... -- 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