Re: Re: [HACKERS] triggered data change violation - Mailing list pgsql-sql

From Bruce Momjian
Subject Re: Re: [HACKERS] triggered data change violation
Date
Msg-id 200103202115.QAA16953@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] triggered data change violation  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-sql
> A "triggered data change violation" happens everytime you change twice
> within a transaction a value (column) that is part of a foreign key
> constraint (don't recall exactly which part).
> 
> This error shouldn't really happen, but I recall there were some
> implementation and definition problems with deferred constraints.
> 
> ...FAQ alert...

Yes, I just got it in the TODO list a few weeks ago:

* INSERT & UPDATE/DELETE in transaction of primary key fails with  deferredTriggerGetPreviousEvent or "change
violation"[foreign]
 

I personally think we could do better on the wording of that error
message, at least until we get it fixed.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] triggered data change violation
Next
From: Tom Lane
Date:
Subject: Re: Re: Use of the LIMIT clause ?