Re: BUG #13860: Duplicated primary key

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: baso10dev(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #13860: Duplicated primary key
Date: 2016-01-11 23:39:16
Message-ID: 10023.1452555556@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

baso10dev(at)gmail(dot)com writes:
> I have a table A.
> I have created table B that inherits table A.
> After playing around I noticed there are duplicate keys in table A.

Most likely, what you're seeing is the behavior described in

http://www.postgresql.org/docs/9.4/static/ddl-inherit.html#DDL-INHERIT-CAVEATS

specifically that a unique constraint on A doesn't apply to B nor
vice versa.

If that's not it, we're going to need a concrete example.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Baso10 Dev 2016-01-11 23:48:57 Re: BUG #13860: Duplicated primary key
Previous Message John R Pierce 2016-01-11 23:31:25 Re: BUG #13860: Duplicated primary key