Re: [HACKERS] question about implementing XA-ish functions

2009-12-18 Thread jesus
This is perfect. It fires on both commit and rollback? And I can determine which? The system I'm interfacing with has 2PC so it should be a pretty tight fit. Thanks a ton Heikki! -- Theo Schlossnagle (mobile) http://omniti.com/is/theo-schlossnagle On Dec 18, 2009, at 10:34 AM, Heikki Linna

Re: [HACKERS] question about implementing XA-ish functions

2009-12-18 Thread Heikki Linnakangas
Theo Schlossnagle wrote: > I'm trying to implement a function that has some XA like properties. > > Is it possible to write a postgres extension function that fires when called > within a pg transaction... however, the actions it takes need to be later > committed or rolled back based on the con

[HACKERS] question about implementing XA-ish functions

2009-12-18 Thread Theo Schlossnagle
I'm trying to implement a function that has some XA like properties. Is it possible to write a postgres extension function that fires when called within a pg transaction... however, the actions it takes need to be later committed or rolled back based on the containing transactions commital or n