Re: Deferred RI trigger for non-key UPDATEs and subxacts - Mailing list pgsql-patches

From Gregory Stark
Subject Re: Deferred RI trigger for non-key UPDATEs and subxacts
Date
Msg-id 873azobzzj.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: Deferred RI trigger for non-key UPDATEs and subxacts  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Deferred RI trigger for non-key UPDATEs and subxacts  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-patches
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> "Affan Salman" <affan@enterprisedb.com> writes:
>> With some time to spare, I thought I'd submit a quick-fix patch to the
>> issue I reported here:
>>       http://archives.postgresql.org/pgsql-hackers/2007-07/msg00339.php
>
> I don't think this is right.  If the original tuple was inserted by a
> subtransaction of our transaction, it will have been checked at
> subtransaction subcommit, no?

That doesn't sound right.

> RELEASE SAVEPOINT destroys a savepoint previously defined in the current
> transaction.
>
> Destroying a savepoint makes it unavailable as a rollback point, but it has
> no other user visible behavior.


On the other hand what happens if you have constraints not deferred, insert a
record, then set constraints deferred and update it?

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com


pgsql-patches by date:

Previous
From: Greg Smith
Date:
Subject: Re: HOT latest patch - version 8
Next
From: Stephan Szabo
Date:
Subject: Re: Deferred RI trigger for non-key UPDATEs and subxacts