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

Re: Get current trasanction id

From: Marek Lewczuk <newsy(at)lewczuk(dot)com>
To: Michael Fuhr <mike(at)fuhr(dot)org>
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 19:54:49
Message-ID: 41D06889.9040503@lewczuk.com (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-sql
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 solve?
> 
Michael,
I've already solved the problem - I found somewhere on the web a very 
simple C function, which returns transaction id. I need transaction id 
for plperl functions setVar, getVar (using $_SHARED array). Functions 
can write/read variables which are available either for connection or 
transaction.

Regards,

ML

 

In response to

Responses

pgsql-sql by date

Next:From: Dennis SacksDate: 2004-12-28 00:20:06
Subject: simulating global temp tables in plpgsql functions
Previous:From: Michael FuhrDate: 2004-12-27 14:54:06
Subject: Re: Get current trasanction id

pgsql-general by date

Next:From: Eric BrownDate: 2004-12-28 10:40:52
Subject: Long-running performance (MVCC, Vacuum, etc.) - Any fix?
Previous:From: John DeSoiDate: 2004-12-27 18:51:25
Subject: Re: error : syntax error at or near $1 for over select rows

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