Re: table inheritance and foreign key troubles

Поиск
Список
Период
Сортировка
От Kevin Way
Тема Re: table inheritance and foreign key troubles
Дата
Msg-id 20010912012435.B14176@bean.overtone.org
обсуждение исходный текст
Ответ на Re: table inheritance and foreign key troubles  (Christof Glaser <gcg@gl.aser.de>)
Список 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 по дате отправления:

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: referencing oid impozsible ?
Следующее
От: Miguel González
Дата:
Сообщение: Re: SQL Query