| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Thomas Hallgren <thhal(at)mailblocks(dot)com>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Transaction callback |
| Date: | 2004-01-31 19:44:32 |
| Message-ID: | 200401311944.i0VJiWj21658@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Scott Lamb | 2004-01-31 20:08:45 | Re: Mixing threaded and non-threaded |
| Previous Message | Tom Lane | 2004-01-31 19:26:36 | Re: Transaction callback |