From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nick Rupley <nickr@mirthcorp.com>
Cc: nickr@mirth.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #10189: Limit in 9.3.4 no longer works when ordering using a composite multi-type index
Date: Wed, 30 Apr 2014 19:52:48 -0400
Message-ID: <10587.1398901968@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMi1eSFAkOWYCUepfsu6gwuxHJ5n=jT46rKVHzBNBVOjM-=Ajw@mail.gmail.com>
References: <20140430214055.1395.15117@wrigleys.postgresql.org>
<9896.1398900139@sss.pgh.pa.us>
<CAMi1eSFAkOWYCUepfsu6gwuxHJ5n=jT46rKVHzBNBVOjM-=Ajw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Nick Rupley <nickr@mirthcorp.com> writes:
> Thanks Tom. We attempted to reindex:
> mirthdb=# reindex index d_mm65_index1;
> ERROR: failed to find parent tuple for heap-only tuple at (14808,2) in
> table "d_mm65"
Ugh :-(. That matches the symptoms of one of the known data-corruption
bugs in 9.3.x, specifically the business about mis-replay of the WAL entry
for locking a tuple. (I suppose this database has either suffered some
crashes, or been promoted from a replication slave?) The bug is fixed as
of 9.3.4, but the fix doesn't magically cure existing corruption :-(
You can look at the specific row involved here with
select * from d_mm65 where ctid = '(14808,2)';
Probably the best recovery strategy is to DELETE that row by ctid,
then reinsert the same data. Lather, rinse, repeat until you can reindex
successfully. Better check your other tables too.
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
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: tgl@sss.pgh.pa.us, nickr@mirthcorp.com, nickr@mirth.com
Subject: Re: BUG #10189: Limit in 9.3.4 no longer works when ordering using a composite multi-type index
In-Reply-To: <10587.1398901968@sss.pgh.pa.us>
References: <20140430214055.1395.15117@wrigleys.postgresql.org> <9896.1398900139@sss.pgh.pa.us> <CAMi1eSFAkOWYCUepfsu6gwuxHJ5n=jT46rKVHzBNBVOjM-=Ajw@mail.gmail.com> <10587.1398901968@sss.pgh.pa.us>
* 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