Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XHYby-000884-Tg for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Aug 2014 13:29:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XHYby-00078g-Dg for pgsql-bugs@arkaria.postgresql.org; Wed, 13 Aug 2014 13:29:06 +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 1XHSle-0003NY-Gv for pgsql-bugs@postgresql.org; Wed, 13 Aug 2014 07:14:42 +0000 Received: from up.nbi.dk ([130.225.212.6] helo=smtp.nbi.ku.dk) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XHSlb-0002yO-57 for pgsql-bugs@postgresql.org; Wed, 13 Aug 2014 07:14:41 +0000 Received: from Gerds-MacBook-Pro.local (4803ds4-fb.0.fullrate.dk [90.184.27.198]) by smtp.nbi.ku.dk (Postfix) with ESMTP id B99F23C016 for ; Wed, 13 Aug 2014 09:14:37 +0200 (CEST) Message-ID: <53EB105C.3010604@ndgf.org> Date: Wed, 13 Aug 2014 09:14:36 +0200 From: Gerd Behrmann User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 CC: pgsql-bugs@postgresql.org Subject: Re: BUG #11141: Duplicate primary key values corruption References: <20140811083748.2536.10437@wrigleys.postgresql.org> <20140812204223.GI5728@eldon.alvh.no-ip.org> In-Reply-To: <20140812204223.GI5728@eldon.alvh.no-ip.org> Content-Type: multipart/mixed; boundary="------------010102090800020409030509" X-Pg-Spam-Score: -0.9 (/) 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 This is a multi-part message in MIME format. --------------010102090800020409030509 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Den 12/08/14 22.42, Alvaro Herrera skrev: > behrmann@ndgf.org wrote: > >> We have observed two rows with the same primary key in one of our production >> databases. We don't know how to reproduce this problem, but given that this >> looks like a corruption bug, I figure you will want to know about this. > > > Can you please install extension pageinspect, then grab the TIDs of both > copies (select ctid from srmlinkgroup where id = ..), then post the > output of: > > select * > from heap_page_items(get_raw_page('srmlinkgroup', BLKNO)) > where lp = (OFFNO) > > where the BLKNO value is the first half of the TID, and OFFNO is the > second half of the TID, for each of those tuples? > > Please attach the results in text files rather than pasting in the > email, as whitespace is mangled by your mail program. > Please find the result of the above query attached. I can add that filtering by the id or name fields only gives me one of the rows (the one corresponding to the first row in the attached file). I guess that means only that row is linked from the indexes. Thanks for your support, /gerd -- Acting NT1 Area Coordinator, NeIC --------------010102090800020409030509 Content-Type: text/plain; charset=UTF-8; x-mac-type="0"; x-mac-creator="0"; name="heap_page_items" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="heap_page_items" lp | lp_off | lp_flags | lp_len | t_xmin | t_xmax | t_field3 | t_ctid | t_infomask2 | t_infomask | t_hoff | t_bits | t_oid ----+--------+----------+--------+-----------+--------+----------+--------+-------------+------------+--------+--------+------- 5 | 7992 | 1 | 96 | 541168217 | 0 | 3 | (21,5) | 32778 | 10498 | 24 | | (1 row) lp | lp_off | lp_flags | lp_len | t_xmin | t_xmax | t_field3 | t_ctid | t_infomask2 | t_infomask | t_hoff | t_bits | t_oid ----+--------+----------+--------+--------+--------+----------+--------+-------------+------------+--------+--------+------- 62 | 8096 | 1 | 96 | 2 | 0 | 4 | (5,62) | 32778 | 10498 | 24 | | (1 row) --------------010102090800020409030509 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs --------------010102090800020409030509--