Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U1Q6D-0005Bb-0W for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Feb 2013 23:32:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U1Q6B-0001My-VI for pgsql-bugs@arkaria.postgresql.org; Fri, 01 Feb 2013 23:32:48 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U1Q6B-0001Ms-3A for pgsql-bugs@postgresql.org; Fri, 01 Feb 2013 23:32:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U1Q6A-0004Qz-0y for pgsql-bugs@postgresql.org; Fri, 01 Feb 2013 23:32:46 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r11NWjj0026307; Fri, 1 Feb 2013 18:32:45 -0500 (EST) From: Tom Lane To: Toby Murray cc: pgsql-bugs@postgresql.org Subject: Re: Violation of primary key constraint In-reply-to: References: <8059.1359675834@sss.pgh.pa.us> <23797.1359755907@sss.pgh.pa.us> Comments: In-reply-to Toby Murray message dated "Fri, 01 Feb 2013 17:18:16 -0600" Date: Fri, 01 Feb 2013 18:32:44 -0500 Message-ID: <26306.1359761564@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) 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 Toby Murray writes: > On Fri, Feb 1, 2013 at 3:58 PM, Tom Lane wrote: >> It's conceivable that this was a software glitch not a hardware glitch, >> ie Postgres forgetting the dirty-bits for a batch of pages, but we've >> not seen any similar reports elsewhere. So I'm leaning to the hardware >> explanation. > Roger that. Unless there is anything else to look at with the database > in its current state, I will try to delete the duplicates and then > backtrack my OSM replication process back to the 28th so that any > other errors that may have gotten in during the botched write are > redone. I wish I could think of something else to look at, but right now I can't. You might as well revert the database. I'd suggest REINDEXing all the indexes too, since the theory of some dropped page updates would imply that the indexes are probably not in sync. It might be worth cranking up logging (eg log_statement = all), so that if this does happen again, we'll have more to go on. 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