Re: Deferred RI trigger for non-key UPDATEs and subxacts

From: "Affan Salman" <affan(at)enterprisedb(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-patches(at)postgresql(dot)org>, "Stephan Szabo" <sszabo(at)megazone(dot)bigpanda(dot)com>
Subject: Re: Deferred RI trigger for non-key UPDATEs and subxacts
Date: 2007-07-16 09:20:56
Message-ID: 469B3878.8090000@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Tom Lane wrote:
> 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?

No, it will be checked at main transaction commit; the immediate_only
flag is FALSE for afterTriggerMarkEvents() only through the invocation
of AfterTriggerFireDeferred(), which comes from CommitTransaction() or
PrepareTransaction().

--
Affan Salman
EnterpriseDB Corporation http://www.enterprisedb.com

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2007-07-16 10:08:52 Re: CREATE TABLE LIKE INCLUDING INDEXES support
Previous Message NikhilS 2007-07-16 08:58:32 Re: CREATE TABLE LIKE INCLUDING INDEXES support