Re: BUG #15159: Duplicate records for same primary key - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: BUG #15159: Duplicate records for same primary key
Date
Msg-id 20180419052732.GB16000@paquier.xyz
Whole thread Raw
In response to Re: BUG #15159: Duplicate records for same primary key  (Peter Geoghegan <pg@bowt.ie>)
List pgsql-bugs
On Wed, Apr 18, 2018 at 09:49:35AM -0700, Peter Geoghegan wrote:
> On Wed, Apr 18, 2018 at 3:10 AM, K S, Sandhya (Nokia - IN/Bangalore)
> <sandhya.k_s@nokia.com> wrote:
>> Also will postgres has any logs which could be used to identify if this bug has appeared ?
>
> This kind of thing that amcheck's "heapallindexed" option can detect,
> which will appear in Postgres 11. You can get a version with
> equivalent functionality that targets earlier Postgres releases from
> Github (there are official PGDG packages for most Linux systems). The
> heapallindexed check can verify that the heap is consistent with
> indexes.

If you cannot afford to either install or compile this module, then you
can go back to the old dump/restore method, tracking what are the rows
violating constraints when restoring the data taken in the dump.
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: Ignored join clause
Next
From: PG Bug reporting form
Date:
Subject: BUG #15162: individual user can connect from anywhere with pgadmin