Re: table inheritance and foreign key troubles - Mailing list pgsql-sql

From Kevin Way
Subject Re: table inheritance and foreign key troubles
Date
Msg-id 20010912012435.B14176@bean.overtone.org
Whole thread Raw
In response to Re: table inheritance and foreign key troubles  (Christof Glaser <gcg@gl.aser.de>)
List pgsql-sql
> PG cannot inherit primary keys or unique constraints, I recall now. So  
> you need to ensure uniqueness for users.node_id:
> CREATE TABLE users (
>   node_id   INT4 UNIQUE,
>   ....
> ) INHERITS (node );

Thank you so much, this is where the flaw in my logic was hiding.  Your
suggestion worked perfectly.

Kevin Way


pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: referencing oid impozsible ?
Next
From: Miguel González
Date:
Subject: Re: SQL Query