Re: Transactions and constraints

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Emil Eifrem <emil(dot)eifrem(at)windh(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Transactions and constraints
Date: 2002-05-31 00:23:47
Message-ID: 13823.1022804627@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Emil Eifrem <emil(dot)eifrem(at)windh(dot)com> writes:
> Upon commit, we get the following error message:
> "ERROR: my_ref referential integrity violation - key referenced from
> table_b not found in table_a"
> We believe this to be valid SQL. We have successfully executed the
> equivalent statements on an Informix Dynamic Server 9.20.

I do not get an error with current sources. I believe this was fixed
by Stephan Szabo's recent patch:

http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/ri_triggers.c.diff?r1=1.32&r2=1.33

I am hesitant to back-patch this in for 7.2.2, however, since it has
received essentially no testing. (Two things clearly wrong with the
original patch are that it doesn't close pk_rel again, and it neglects
to reset ReferentialIntegritySnapshotOverride before returning.) But
if you care to apply it locally with those repairs, it may hold you
until 7.3 ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Emil Eifrém 2002-05-31 01:00:24 Re: Transactions and constraints
Previous Message Emil Eifrem 2002-05-30 23:54:05 Transactions and constraints