X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 575B93F9230; Mon, 27 Dec 2004 12:07:31 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 75724-01; Mon, 27 Dec 2004 12:07:16 +0000 (GMT) Received: from svana.org (svana.org [203.20.62.76]) by svr1.postgresql.org (Postfix) with ESMTP id A8E083F92BD; Mon, 27 Dec 2004 12:07:16 +0000 (GMT) Received: from kleptog by svana.org with local (Exim 3.35 #1 (Debian)) id 1CiteW-0000aV-00; Mon, 27 Dec 2004 23:07:08 +1100 Date: Mon, 27 Dec 2004 13:07:07 +0100 From: Martijn van Oosterhout To: Marek Lewczuk Cc: Lista dyskusyjna pgsql-general , Lista dyskusyjna pgsql-sql Subject: Re: Get current trasanction id Message-ID: <20041227120703.GA1298@svana.org> Reply-To: Martijn van Oosterhout Mail-Followup-To: Marek Lewczuk , Lista dyskusyjna pgsql-general , Lista dyskusyjna pgsql-sql References: <41CFCD69.6010503@lewczuk.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline In-Reply-To: <41CFCD69.6010503@lewczuk.com> User-Agent: Mutt/1.3.28i X-PGP-Key-ID: Length=1024; ID=0x0DC67BE6 X-PGP-Key-Fingerprint: 295F A899 A81A 156D B522 48A7 6394 F08A 0DC6 7BE6 X-PGP-Key-URL: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200412/1211 X-Sequence-Number: 70823 --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 ? >=20 > Thanks in advance for any help. >=20 > ML >=20 >=20 >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) --=20 Martijn van Oosterhout 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. --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQFBz/rnY5Twig3Ge+YRArvsAJ9u7nBdOYSAVocp5vnuNlmZJTScDQCghlFU kyDwHY9NXtLTHUebH7yUab0= =/6w4 -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe--