pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: sandhya.k_s@nokia.com
Subject: BUG #15159: Duplicate records for same primary key
Date: Tue, 17 Apr 2018 04:37:51 +0000
Message-ID: <152393987113.19372.6629000851922993437@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15159
Logged by:          Sandhya KS
Email address:      sandhya.k_s@nokia.com
PostgreSQL version: 9.3.14
Operating system:   WindRiver
Description:        

For 9.3.14 version, in customer environment we are facing the following
issue. Query to fetch the record for a particular primary key is displaying
one record. But when trying to display the duplicate records of that
table(sample command: SELECT <primary_key>, COUNT(*) FROM users GROUP BY
<primary_key> HAVING COUNT(*) > 1) is showing that there are 2 records for
the same primary key. 

One more strange this is, if we delete all the records related to this
primary key, then one more primary key is showing up to be having duplicate
records. Checked the triggers as well: on delete no operation is being
performed on this table. 

Questions:
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 ?



view thread (5+ messages)  latest in thread

Message-ID: <152393987113.19372.6629000851922993437@wrigleys.postgresql.org>
Permalink:  ../152393987113.19372.6629000851922993437@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/152393987113.19372.6629000851922993437@wrigleys.postgresql.org

 · 

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

* 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