pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Toby Murray <toby.murray@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Violation of primary key constraint
Date: Fri, 01 Feb 2013 18:32:44 -0500
Message-ID: <26306.1359761564@sss.pgh.pa.us> (raw)
In-Reply-To: <CAJeqKgsaS43iQx+s8HVRsGYLes795YzC8HQ8cmkYhb_x3q4btg@mail.gmail.com>
References: <CAJeqKgveXGDDNLo6PEShgf+TrdZ2JOXmjfg91CEE+TPG-963_Q@mail.gmail.com>
	<8059.1359675834@sss.pgh.pa.us>
	<CAJeqKgvgFRawT8tL21XtVdw7jjh7BOJXceBLVr1FA+Tf6Pc_-A@mail.gmail.com>
	<23797.1359755907@sss.pgh.pa.us>
	<CAJeqKgsaS43iQx+s8HVRsGYLes795YzC8HQ8cmkYhb_x3q4btg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Toby Murray <toby.murray@gmail.com> writes:
> On Fri, Feb 1, 2013 at 3:58 PM, Tom Lane <tgl@sss.pgh.pa.us> 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



view thread (8+ messages)

Message-ID: <26306.1359761564@sss.pgh.pa.us>
Permalink:  ../26306.1359761564@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26306.1359761564@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, toby.murray@gmail.com
  Subject: Re: Violation of primary key constraint
  In-Reply-To: <26306.1359761564@sss.pgh.pa.us>
  References: <CAJeqKgveXGDDNLo6PEShgf+TrdZ2JOXmjfg91CEE+TPG-963_Q@mail.gmail.com> <8059.1359675834@sss.pgh.pa.us> <CAJeqKgvgFRawT8tL21XtVdw7jjh7BOJXceBLVr1FA+Tf6Pc_-A@mail.gmail.com> <23797.1359755907@sss.pgh.pa.us> <CAJeqKgsaS43iQx+s8HVRsGYLes795YzC8HQ8cmkYhb_x3q4btg@mail.gmail.com> <26306.1359761564@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox