From: Martijn van Oosterhout <kleptog@svana.org>
To: Marek Lewczuk <newsy@lewczuk.com>
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 13:07:07 +0100
Message-ID: <20041227120703.GA1298@svana.org> (raw)
In-Reply-To: <41CFCD69.6010503@lewczuk.com>
References: <41CFCD69.6010503@lewczuk.com>
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@postgresql.org)
--
Martijn van Oosterhout <kleptog@svana.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.
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: kleptog@svana.org, newsy@lewczuk.com, pgsql-general@postgresql.org
Subject: Re: Get current trasanction id
In-Reply-To: <20041227120703.GA1298@svana.org>
* 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