pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: Glenn MacGregor <gtm@oracom.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Transaction and cascade problem
Date: Thu, 20 Dec 2001 12:09:11 -0500
Message-ID: <9261.1008868151@sss.pgh.pa.us> (raw)
In-Reply-To: <web-532942@davinci.ethosmedia.com>
References: <web-532942@davinci.ethosmedia.com>

"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



view thread (6+ messages)  latest in thread

Message-ID: <9261.1008868151@sss.pgh.pa.us>
Permalink:  ../9261.1008868151@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9261.1008868151@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, josh@agliodbs.com, gtm@oracom.com
  Subject: Re: Transaction and cascade problem
  In-Reply-To: <9261.1008868151@sss.pgh.pa.us>

* 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