Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoV25-0008CA-Cm for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Dec 2013 09:15:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VoV24-0007jy-Jq for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Dec 2013 09:15:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoV22-0007gr-Dt for pgsql-bugs@postgresql.org; Thu, 05 Dec 2013 09:15:38 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoV1v-00037Z-IF for pgsql-bugs@postgresql.org; Thu, 05 Dec 2013 09:15:38 +0000 Received: from intern.anarazel.de (p5DDC41B8.dip0.t-ipconnect.de [93.220.65.184]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 09960500004; Thu, 5 Dec 2013 10:15:30 +0100 (CET) Date: Thu, 5 Dec 2013 10:15:29 +0100 From: Andres Freund To: Maciek Sakrejda Cc: Alvaro Herrera , pgsql-bugs@postgresql.org Subject: Re: BUG #8656: Duplicate data violating unique constraints Message-ID: <20131205091529.GD28793@alap2.anarazel.de> References: <20131205013307.GC8935@awork2.anarazel.de> 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 On 2013-12-04 21:29:21 -0800, Maciek Sakrejda wrote: > Interesting. That very well could be the issue. I didn't this affected > primaries. Well, it's a different, 9.3 only,bug, to the replication one. > Latest checkpoint's NextXID: 0/1579944 > Latest checkpoint's NextMultiXactId: 592631 > > From the description, I can't tell what this means: does this either confim > or refute that this database was affected? It doesn't say anything definitive either way. Do you run with any non-default settings? Possibly vacuum_freeze_min_age, vacuum_freeze_table_age, autovacuum_freeze_max_age? Could you do: SELECT ctid FROM post WHERE rows_re_affected; That will spin out a bunch of rows like '(page,item)'. With that page could you do: CREATE EXTENSION pageinspect; SELECT * FROM page_header(get_raw_page('post', page_from_above)); SELECT * FROM heap_page_items(get_raw_page('post', page_from_above)); and post that here? 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