Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXXCJ-0001jx-B5 for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Apr 2014 14:40:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WXXCI-0006u9-M9 for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Apr 2014 14:40:22 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXQzj-000724-1r for pgsql-bugs@postgresql.org; Tue, 08 Apr 2014 08:02:59 +0000 Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXQzb-0007pu-P6 for pgsql-bugs@postgresql.org; Tue, 08 Apr 2014 08:02:58 +0000 Received: by mail-lb0-f180.google.com with SMTP id 10so529822lbg.11 for ; Tue, 08 Apr 2014 01:02:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=nbrZc41LU1y3A46uo92AqDVC7KtourcV2q46QHQqM3k=; b=tENpMmuoEJ+G9D0yceKj3rIrvD9Mcd+JCuYUqumCHM28YHVdaL/Wd+PqGDOSXiMHab EFIgfUViEbEhGRkAL51lzqeG0xa/mc5+ZLn98eL7OAIEPTzhiYgxg/NEM2HAhoMdkCh1 Cr6wQaNLfZ80455MQ748rvQ4OZ0nWqSIun6YwiDtgKzj7m0BPqfqwbhNHxsBDrEDJZHq gozG1c3n74+TA9s1bX5kOAq/wuK6ePjj8oyTdW5AJlvOYLSITrcLlgHoa5Eyjk7VZ9zL wUyVPIQeajMwyLJRZZvY4SP9FqNhN9bWXqSqh5IzVnO0OiSZyU8a0E1XLZzB+cZ1imzL RuuQ== X-Received: by 10.152.19.65 with SMTP id c1mr1781033lae.35.1396944169748; Tue, 08 Apr 2014 01:02:49 -0700 (PDT) Received: from [192.168.1.45] (0905ds8-ar.0.fullrate.dk. [90.185.23.222]) by mx.google.com with ESMTPSA id wk4sm1059467lbb.11.2014.04.08.01.02.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Apr 2014 01:02:48 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: BUG #9895: Duplicate pkey From: =?iso-8859-1?Q?Niels_Kristian_Schj=F8dt?= In-Reply-To: Date: Tue, 8 Apr 2014 10:02:46 +0200 Cc: pgsql-bugs@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <838D1286-4D43-472F-B26A-55284523577D@gmail.com> References: <20140407115724.342.84224@wrigleys.postgresql.org> To: Michael Paquier X-Mailer: Apple Mail (2.1874) X-Pg-Spam-Score: -2.0 (--) 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 Thanks, that is most defiantly the case. What is the best approach on doing a loop of re-checking of all my constrai= nts (pkeys, fkeys) -> fixing issues -> checking again, to make sure that my= data is OK? Den 08/04/2014 kl. 02.22 skrev Michael Paquier : > On Mon, Apr 7, 2014 at 8:57 PM, wrote: >> Hi I just realized that my data contains a few duplicate primary keys! T= here >> has ALWAYS been a PRIMARY KEY constraint on those ID's. The affected rec= ords >> might have been created while running a previous version of postgresql. >=20 > 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, > --=20 > Michael --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs