Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfeJ8-0001Ou-0g for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Apr 2014 23:52:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WfeJ6-0003Hp-Q6 for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Apr 2014 23:52:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfeJ5-0003Hi-Rb for pgsql-bugs@postgresql.org; Wed, 30 Apr 2014 23:52:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfeJ2-0000qn-AX for pgsql-bugs@postgresql.org; Wed, 30 Apr 2014 23:52:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s3UNqmvN010588; Wed, 30 Apr 2014 19:52:48 -0400 From: Tom Lane To: Nick Rupley cc: nickr@mirth.com, pgsql-bugs@postgresql.org Subject: Re: BUG #10189: Limit in 9.3.4 no longer works when ordering using a composite multi-type index In-reply-to: References: <20140430214055.1395.15117@wrigleys.postgresql.org> <9896.1398900139@sss.pgh.pa.us> Comments: In-reply-to Nick Rupley message dated "Wed, 30 Apr 2014 16:39:14 -0700" Date: Wed, 30 Apr 2014 19:52:48 -0400 Message-ID: <10587.1398901968@sss.pgh.pa.us> 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 Nick Rupley 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