Re: Transaction callback - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Transaction callback
Date
Msg-id 200401311944.i0VJiWj21658@candle.pha.pa.us
Whole thread Raw
In response to Re: Transaction callback  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> I got the impression that Thomas wanted this in order to kluge up
> some kind of two-phase-commit support, in which case he really needs
> to get control at the point where we're just about to really truly
> commit (ie, write the commit WAL record).  That's certainly not a
> location where we want random users to be inserting code; as such
> I don't think that exposing a callback hook is the right answer.
> My advice to him is to go in and change the code.

Yes, it can't be used for more advanced stuff like 2-phase commit.  I
know some were asking for callbacks on (clean) session exit, and it
seemed like a natural extension.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Transaction callback
Next
From: "Ezra Epstein"
Date:
Subject: Re: Extending SET SESSION AUTHORIZATION