Re: Incomprehensible behaviour of a foreign key.

Поиск
Список
Период
Сортировка
От Karsten Hilbert
Тема Re: Incomprehensible behaviour of a foreign key.
Дата
Msg-id 20030720165623.D610@hermes.hilbert.loc
обсуждение исходный текст
Ответ на Re: Incomprehensible behaviour of a foreign key.  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Список pgsql-general
Just an uninformed wild guess but you seem to be in
desperate search for straws:

> create table site_membership (
>  id serial unique
>  ,group_id int references groups(id)
>  ,site_id int references someothertable(id)
>  ,primary key(site_id,group_id)
> ) without oids;

Does using id as primary key and removing the multi-key
primary key constraint on (site_id, group_id) help any ?

Unlikely but you never know...

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Incomprehensible behaviour of a foreign key.
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: Incomprehensible behaviour of a foreign key.