pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: msn <vujadin@post.tele.dk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Referential integrity implementation - bug or user error?
Date: Wed, 13 Mar 2002 11:50:12 -0800 (PST)
Message-ID: <20020313114721.M85167-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <20020310.231934.654887343.1425@post.tele.dk>

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.




view thread (3+ messages)

Message-ID: <20020313114721.M85167-100000@megazone23.bigpanda.com>
Permalink:  ../20020313114721.M85167-100000@megazone23.bigpanda.com/
Also on:    postgresql.org/message-id/20020313114721.M85167-100000@megazone23.bigpanda.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: sszabo@megazone23.bigpanda.com, vujadin@post.tele.dk
  Subject: Re: Referential integrity implementation - bug or user error?
  In-Reply-To: <20020313114721.M85167-100000@megazone23.bigpanda.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox