pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: sandhya.k_s@nokia.com
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15159: Duplicate records for same primary key
Date: Tue, 17 Apr 2018 13:45:44 +0900
Message-ID: <20180417044544.GE4998@paquier.xyz> (raw)
In-Reply-To: <152393987113.19372.6629000851922993437@wrigleys.postgresql.org>
References: <152393987113.19372.6629000851922993437@wrigleys.postgresql.org>

On Tue, Apr 17, 2018 at 04:37:51AM +0000, PG Bug reporting form wrote:
> 1. Primary key is created to have unique records, then how two records are
> being created/inserted?
> 2. After delete of malicious record, how other record is showing up to be
> having duplicate records? Am I missing anything to be checked ?

The bug nick-named around as freeze-the-dead.  9.3.21 has fixed an issue
where tuples not normally visible, or marked as dead could come back to
life and become visible.  That's this entry in the release notes:
"Fix vacuuming of tuples that were updated while key-share locked (Andres
Freund, Álvaro Herrera)
In some cases VACUUM would fail to remove such tuples even though they
are now dead, leading to assorted data corruption scenarios."

And here are the corresponding release notes:
https://www.postgresql.org/docs/devel/static/release-9-3-21.html

So you first need to update this version of PostgreSQL, and then some
manual cleanup of those duplicated tuples is needed with for example a
tid mathing.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (5+ messages)  latest in thread

Message-ID: <20180417044544.GE4998@paquier.xyz>
Permalink:  ../20180417044544.GE4998@paquier.xyz/
Also on:    postgresql.org/message-id/20180417044544.GE4998@paquier.xyz

 · 

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: michael@paquier.xyz, sandhya.k_s@nokia.com
  Subject: Re: BUG #15159: Duplicate records for same primary key
  In-Reply-To: <20180417044544.GE4998@paquier.xyz>
  References: <152393987113.19372.6629000851922993437@wrigleys.postgresql.org> <20180417044544.GE4998@paquier.xyz>

* 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