Re: [GENERAL] Get current trasanction id

2004-12-28 Thread Marek Lewczuk
Joachim Zobel napisaÅ(a): Am Mo, den 27.12.2004 schrieb Marek Lewczuk um 20:54: Michael Fuhr napisaÅ(a): Why do you want the transaction ID? What problem are you trying to solve? I've already solved the problem - I found somewhere on the web a very simple C function, which returns transaction id.

Re: [GENERAL] Get current trasanction id

2004-12-28 Thread Joachim Zobel
Am Mo, den 27.12.2004 schrieb Marek Lewczuk um 20:54: > Michael Fuhr napisał(a): > > Why do you want the transaction ID? What problem are you trying > > to solve? > > > I've already solved the problem - I found somewhere on the web a very > simple C function, which returns transaction id. I need

Re: [GENERAL] Get current trasanction id

2004-12-27 Thread Marek Lewczuk
Michael Fuhr napisaÅ(a): On Mon, Dec 27, 2004 at 09:52:57AM +0100, Marek Lewczuk wrote: is there any way to get current transaction id using plpgsql or sql ? A couple of people have posted suggestions but I'll ask a question: Why do you want the transaction ID? What problem are you trying to sol

Re: [GENERAL] Get current trasanction id

2004-12-27 Thread Michael Fuhr
On Mon, Dec 27, 2004 at 09:52:57AM +0100, Marek Lewczuk wrote: > is there any way to get current transaction id using plpgsql or sql ? A couple of people have posted suggestions but I'll ask a question: Why do you want the transaction ID? What problem are you trying to solve? -- Michael Fuhr

Re: [GENERAL] Get current trasanction id

2004-12-27 Thread Martijn van Oosterhout
I'm sure there's many tricky ways, but one simple way would be to insert a row into a table and then grab its XMIN value... Hope this helps, On Mon, Dec 27, 2004 at 09:52:57AM +0100, Marek Lewczuk wrote: > Hello, > is there any way to get current transaction id using plpgsql or sql ? > > Thanks

[GENERAL] Get current trasanction id

2004-12-27 Thread Marek Lewczuk
Hello, is there any way to get current transaction id using plpgsql or sql ? Thanks in advance for any help. ML ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" t