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
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-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

Browse pgsql-general by date

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

Browse pgsql-sql by date

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