From: Marek Lewczuk <newsy@lewczuk.com>
To: Michael Fuhr <mike@fuhr.org>
Cc: Lista dyskusyjna pgsql-general <pgsql-general@postgresql.org>
Cc: Lista dyskusyjna pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: Get current trasanction id
Date: Mon, 27 Dec 2004 20:54:49 +0100
Message-ID: <41D06889.9040503@lewczuk.com> (raw)
In-Reply-To: <20041227145406.GA73681@winnie.fuhr.org>
References: <41CFCD69.6010503@lewczuk.com>
<20041227145406.GA73681@winnie.fuhr.org>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: newsy@lewczuk.com, mike@fuhr.org, pgsql-general@postgresql.org
Subject: Re: Get current trasanction id
In-Reply-To: <41D06889.9040503@lewczuk.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox