pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Niels Kristian Schjødt <nk.schjoedt@gmail.com>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9895: Duplicate pkey
Date: Tue, 8 Apr 2014 10:02:46 +0200
Message-ID: <838D1286-4D43-472F-B26A-55284523577D@gmail.com> (raw)
In-Reply-To: <CAB7nPqTgyKmZBKz2iMjO9-X3OXMdgekFyE_ZvP8BWBwpRm5SXQ@mail.gmail.com>
References: <20140407115724.342.84224@wrigleys.postgresql.org>
	<CAB7nPqTgyKmZBKz2iMjO9-X3OXMdgekFyE_ZvP8BWBwpRm5SXQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Thanks, that is most defiantly the case.

What is the best approach on doing a loop of re-checking of all my constraints (pkeys, fkeys) -> fixing issues -> checking again, to make sure that my data is OK?

Den 08/04/2014 kl. 02.22 skrev Michael Paquier <michael.paquier@gmail.com>:

> On Mon, Apr 7, 2014 at 8:57 PM,  <nk.schjoedt@gmail.com> wrote:
>> Hi I just realized that my data contains a few duplicate primary keys! There
>> has ALWAYS been a PRIMARY KEY constraint on those ID's. The affected records
>> might have been created while running a previous version of postgresql.
> 
> 9.3.4 has fixed a data corruption issue in WAL replay that could
> create inconsistent query results when using an index on a standby.
> This could lead to violations of primary keys for example. Perhaps you
> have been bitten by that:
> http://www.postgresql.org/docs/devel/static/release-9-3-4.html
> When updating to 9.3.4 it is recommended to replace all the standbys
> by a new base backup after the update.
> Regards,
> -- 
> Michael



-- 
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 (3+ messages)

Message-ID: <838D1286-4D43-472F-B26A-55284523577D@gmail.com>
Permalink:  ../838D1286-4D43-472F-B26A-55284523577D@gmail.com/
Also on:    postgresql.org/message-id/838D1286-4D43-472F-B26A-55284523577D@gmail.com

 · 

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: nk.schjoedt@gmail.com, michael.paquier@gmail.com
  Subject: Re: BUG #9895: Duplicate pkey
  In-Reply-To: <838D1286-4D43-472F-B26A-55284523577D@gmail.com>
  References: <20140407115724.342.84224@wrigleys.postgresql.org> <CAB7nPqTgyKmZBKz2iMjO9-X3OXMdgekFyE_ZvP8BWBwpRm5SXQ@mail.gmail.com> <838D1286-4D43-472F-B26A-55284523577D@gmail.com>

* 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