Re: Referential integrity implementation - bug or user error?

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: msn <vujadin(at)post(dot)tele(dot)dk>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Referential integrity implementation - bug or user error?
Date: 2002-03-13 19:50:12
Message-ID: 20020313114721.M85167-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message PG Explorer 2002-03-13 20:25:03 Re: Casting
Previous Message Stephan Szabo 2002-03-13 18:18:02 Re: Help reqd: Copying char to date