Re: Transaction callback - Mailing list pgsql-hackers

From Thomas Hallgren
Subject Re: Transaction callback
Date
Msg-id bvhcmu$m8t$1@news.hub.org
Whole thread Raw
In response to Re: Transaction callback  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
 I don't want to kludge up a 2-phase commit support. Any attempt to provide
that must be extremely well thought through :-)

But I would like to know more about PostgreSQL capabilities in the area.
What kind of XA-support is there? Can I read about this somewhere? (I'm
working on an Open Source high-end appserver bundling offer and would of
course like to promote PostgreSQL)

I'm not sure what Tom means when he says "go in and change the code". What
code?

- thomas

"Bruce Momjian" <pgman@candle.pha.pa.us> wrote in message
news:200401311944.i0VJiWj21658@candle.pha.pa.us...
> 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, Pennsylvania
19073
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>




pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: Idea about better configuration options for sort memory
Next
From: Tatsuo Ishii
Date:
Subject: Re: [PATCHES] v7.4.1 text_position() patch