pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Greg Stark <stark@mit.edu>
Cc: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: Maciek Sakrejda <m.sakrejda@gmail.com>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #10432: failed to re-find parent key in index
Date: Mon, 2 Jun 2014 19:40:07 +0200
Message-ID: <20140602174007.GF24145@awork2.anarazel.de> (raw)
In-Reply-To: <CAM-w4HP=Fn2pV-GCc-C_b=gFXFnF+v-W-o+QV34YK63MSDNVfA@mail.gmail.com>
References: <20140523175217.2692.50568@wrigleys.postgresql.org>
	<5384D42A.8070904@vmware.com>
	<CAOtHd0A=ZJDbh2FU0jauLjN-_W7_BR79F+t0y99J=xXf8Jao9A@mail.gmail.com>
	<20140529160835.GO27914@awork2.anarazel.de>
	<CAOtHd0AQShrajYehGS4qpHTJPxZ3uKwj3tqQxKEH3TKCyfSc5g@mail.gmail.com>
	<20140529171934.GP27914@awork2.anarazel.de>
	<CAOtHd0B8n_K13ajd_V7zewDG5m5Q+nfQGBh0Ht8486-ttnyKtw@mail.gmail.com>
	<CAM-w4HP34ppweGTCwjBZnWhQ0CmU-Lxna62vjKU8QRTWLOBuHw@mail.gmail.com>
	<538839CF.5080007@vmware.com>
	<CAM-w4HP=Fn2pV-GCc-C_b=gFXFnF+v-W-o+QV34YK63MSDNVfA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2014-06-02 18:17:46 +0100, Greg Stark wrote:
> Ok, not sure why my first attempt didn't turn this up. I found the
> split in segment 334/91:
> 
> rmgr: Btree       len (rec/tot):   3776/  9220, tx:   95765459, lsn:
> 334/91455AB8, prev 334/91455A70, bkp: 0100, desc: split_l: rel
> 1663/16385/1665279 left 175193, right 193740, next 182402, level 0,
> firstright 138
> 
> I've attached all the xlog records pertaining to this relation
> grepping for either of these two blocks.
> 
> Now interestingly the hot backup was taken starting at 334/90 and
> replay didn't finish until 339/65 so it is entirely possible, even
> likely, that the backup caught this split in an inconsistent state.

Did you check whether all the necessary FPIs were generated? That'd be
my very first suspect.

How many checkpoints are inbetween 334/90 and 339/65?

> How should I go about dumping the two blocks? I have the backup prior
> to WAL replay as well as all the WAL for this time period. I can't
> connect to the database so I'm guessing this will look like replay
> until it hits a record for these block, use dd to extract the block,
> rinse lather repeat. Then dump each of those extracted pages using
> pageinspect on byteas. This sounds pretty laborious :(

I guess you could make xlogdump dump the data from the backup blocks...

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



view thread (18+ messages)  latest in thread

Message-ID: <20140602174007.GF24145@awork2.anarazel.de>
Permalink:  ../20140602174007.GF24145@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20140602174007.GF24145@awork2.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andres@2ndquadrant.com, stark@mit.edu, hlinnakangas@vmware.com, m.sakrejda@gmail.com
  Subject: Re: BUG #10432: failed to re-find parent key in index
  In-Reply-To: <20140602174007.GF24145@awork2.anarazel.de>
  References: <20140523175217.2692.50568@wrigleys.postgresql.org> <5384D42A.8070904@vmware.com> <CAOtHd0A=ZJDbh2FU0jauLjN-_W7_BR79F+t0y99J=xXf8Jao9A@mail.gmail.com> <20140529160835.GO27914@awork2.anarazel.de> <CAOtHd0AQShrajYehGS4qpHTJPxZ3uKwj3tqQxKEH3TKCyfSc5g@mail.gmail.com> <20140529171934.GP27914@awork2.anarazel.de> <CAOtHd0B8n_K13ajd_V7zewDG5m5Q+nfQGBh0Ht8486-ttnyKtw@mail.gmail.com> <CAM-w4HP34ppweGTCwjBZnWhQ0CmU-Lxna62vjKU8QRTWLOBuHw@mail.gmail.com> <538839CF.5080007@vmware.com> <CAM-w4HP=Fn2pV-GCc-C_b=gFXFnF+v-W-o+QV34YK63MSDNVfA@mail.gmail.com> <20140602174007.GF24145@awork2.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox