Re: Two foreign keys in one table both referencing same record in primary table gives error on update of primary table

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Two foreign keys in one table both referencing same record in primary table gives error on update of primary table
Дата
Msg-id Pine.BSF.4.21.0107181455240.32124-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Two foreign keys in one table both referencing same record in primary table gives error on update of primary table  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
Yes, it's because it sees the intermediate
state (6,1) when it shouldn't (it processes
each foreign key separately and does the cascade
update which places it in an "invalid" state
since the 1 key no longer exists).

I believe the fixes I've been working on for deferred
constraints will make this case work as well.

On Wed, 18 Jul 2001 pgsql-bugs@postgresql.org wrote:

> Bob Soeters (bob@iway.nl) reports a bug with a severity of 2
> The lower the number the more severe it is.
>
> Short Description Two foreign keys in one table both referencing same
> record in primary table gives error on update of primary table

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

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Two foreign keys in one table both referencing same record in primary table gives error on update of primary table
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: ERROR: CreateTrigger: function check_primary_key() does not exist