Skip site navigation (1) Skip section navigation (2)

Re: Get current trasanction id

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Marek Lewczuk <newsy(at)lewczuk(dot)com>
Cc: Lista dyskusyjna pgsql-general <pgsql-general(at)postgresql(dot)org>,Lista dyskusyjna pgsql-sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Get current trasanction id
Date: 2004-12-27 12:07:07
Message-ID: 20041227120703.GA1298@svana.org (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-sql
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 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" to majordomo(at)postgresql(dot)org)

-- 
Martijn van Oosterhout   <kleptog(at)svana(dot)org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

pgsql-sql by date

Next:From: Michael FuhrDate: 2004-12-27 14:54:06
Subject: Re: Get current trasanction id
Previous:From: Achilleus MantziosDate: 2004-12-27 10:38:33
Subject: Re: [SQL] Get current trasanction id

pgsql-general by date

Next:From: John DeSoiDate: 2004-12-27 12:20:43
Subject: Re: Where is the error
Previous:From: Kaloyan Iliev IlievDate: 2004-12-27 11:42:07
Subject: Where is the error

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group