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

From Peter Eisentraut
Subject Re: [HACKERS] triggered data change violation
Date
Msg-id Pine.LNX.4.30.0103202210120.1639-100000@peter.localdomain
Whole thread Raw
In response to Re: [HACKERS] triggered data change violation  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Re: [HACKERS] triggered data change violation
List pgsql-sql
Tom Lane writes:

> Cedar Cox <cedarc@visionforisrael.com> writes:
> > Added note:  The trigger is a BEFORE trigger.
>
> AFAIK the "triggered data change" message comes out of the AFTER trigger
> code.  You sure you don't have any AFTER triggers on the table?  Perhaps
> ones added implicitly by a foreign-key constraint?

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...

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



pgsql-sql by date:

Previous
From: Cedar Cox
Date:
Subject: Re: [HACKERS] triggered data change violation
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] triggered data change violation