Re: BUG #13860: Duplicated primary key - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #13860: Duplicated primary key
Date
Msg-id 10023.1452555556@sss.pgh.pa.us
Whole thread Raw
In response to BUG #13860: Duplicated primary key  (baso10dev@gmail.com)
Responses Re: BUG #13860: Duplicated primary key
List pgsql-bugs
baso10dev@gmail.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

pgsql-bugs by date:

Previous
From: John R Pierce
Date:
Subject: Re: BUG #13860: Duplicated primary key
Next
From: Michael Paquier
Date:
Subject: Re: BUG #13858: Server with debugger installed consumes 100% of one CPU core