Re: Referential integrity implementation - bug or user error?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Referential integrity implementation - bug or user error?
Дата
Msg-id 20020313114721.M85167-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Referential integrity implementation - bug or user error?  ("msn" <vujadin@post.tele.dk>)
Список pgsql-sql
On Sun, 10 Mar 2002, msn wrote:

> But then when I try to delete one id from t1 I get this error message.
>
> msn=# delete from t1 where id=1;
> ERROR:  <unnamed> referential integrity violation - key referenced from t2
> not found in t1
>
> Why this fails to set columns t1_aid and t1_bid in table t2 to null?

Known problem with checking intermediate states of the table. It happens
here because there are two references to the same table. I sent a message
in response to a similar problem on -bugs that contained part of a patch
that may fix this problem for you.



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

Предыдущее
От: "PG Explorer"
Дата:
Сообщение: Re: Casting
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Casting