Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoNoX-0002jy-N1 for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Dec 2013 01:33:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VoNoW-00039l-Vm for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Dec 2013 01:33:13 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoNoW-00039Z-Ax for pgsql-bugs@postgresql.org; Thu, 05 Dec 2013 01:33:12 +0000 Received: from moutng.kundenserver.de ([212.227.126.171]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VoNoT-0007VR-FG for pgsql-bugs@postgresql.org; Thu, 05 Dec 2013 01:33:11 +0000 Received: from anarazel.de (p5DDC5DE1.dip0.t-ipconnect.de [93.220.93.225]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0M9cAV-1Vt5qt140d-00D7ew; Thu, 05 Dec 2013 02:33:08 +0100 Received: by anarazel.de (Postfix, from userid 1000) id 72C26105252; Thu, 5 Dec 2013 02:33:07 +0100 (CET) Date: Thu, 5 Dec 2013 02:33:07 +0100 From: Andres Freund To: maciek@heroku.com, Alvaro Herrera Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8656: Duplicate data violating unique constraints Message-ID: <20131205013307.GC8935@awork2.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Provags-ID: V02:K0:2DfGfS09tw/ZX1iUAf5g5gupargfNQRWt5uMFxWUp1Q lLb5aXKHp0ok+/F8zoLltTeEmW169+VB3FWyTnxm6zb5vqvcQ6 zFHMMPFeq3tJByFD2rnKDWAxJpyQJRyzdpViNRx9/RDJ7F/xql QWfWM3uuj1bFtMyQxzKIaocdrkdMv/X/YrCze/Y8MVXMpys0Hr OJrAqlvh2b5dcOPqlhKjptC2OxWDhTCxNdGfq/UOJAeaQe5Y8E FsnYd6DP3v1XIumXs8Mjfy+QOYtT6deNEKLcRw2ZdPfElsQ9WU xo/WWTLhSjFP2JyEbeOgcx13hTTM45eK1jedDgyyZoeYwZQPLq XtP+N0K2Ziqm81hkwi5CGwbEy5az9ErB/yNy/bpFB X-Pg-Spam-Score: -1.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 On 2013-12-04 20:04:15 +0000, maciek@heroku.com wrote: > Bug reference: 8656 > Logged by: Maciek Sakrejda > Email address: maciek@heroku.com > PostgreSQL version: 9.3.1 > Operating system: Ubuntu 12.04 LTS 64-bit > Description: > > A customer has run into an issue where data in a single table was apparently > duplicated somehow, violating the unique constraint imposed by the primary > key: This quite possibly is an instance of the second item mentioned on http://www.postgresql.org/docs/devel/static/release-9-3-2.html (upcoming release). Note that, due to time constraints, the fix isn't perfect, but it will prevent that sort of issue. Did you ever do a VACUUM FREEZE? Do you have significant concurrency? Could you please send the output of pg_controldata and SELECT relfrozenxid, relminmxid FROM pg_class WHERE oid = 'tablename'::regclass;? 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