Re: Transaction and cascade problem - Mailing list pgsql-sql

From Tom Lane
Subject Re: Transaction and cascade problem
Date
Msg-id 9261.1008868151@sss.pgh.pa.us
Whole thread Raw
In response to Re: Transaction and cascade problem  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
"Josh Berkus" <josh@agliodbs.com> writes:
>> ERROR: triggered data change violation on relation "groups"

> Yes.  For some technical reason ( I'm not clear on this ) you cannot
> both add and delete the same row within a PostgreSQL transaction.  This
> is a known issue in 7.1.x; I do not know if it is fixed in 7.2.  

Actually, we've just removed that error check in 7.2.  The discussion
concluded that we'd misinterpreted the spec in treating this condition
as an error.  You can simply dike out the error call (it's in
src/backend/commands/trigger.c, IIRC) if it's getting in your way in
7.1.
        regards, tom lane


pgsql-sql by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: Transaction and cascade problem
Next
From: "Peter T. Brown"
Date:
Subject: Re: controlling process priority