From: postgresql <pgsql@symcom.com>
To: PgSQL-SQL <pgsql-sql@postgresql.org>
Subject: finding current oid
Date: Fri, 06 Jul 2001 09:46:58 -0400
Message-ID: <200107061345.f66DjVa66095@postgresql.org> (raw)
Is there a way to return the current oid of a transaction?
I am trying to:
begin;
insert into db something;
select current session oid
commit;
I will only ever be inserting one row during the transaction.
Is this doable?
Thanks for your time.
Ted
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: pgsql@symcom.com
Subject: Re: finding current oid
In-Reply-To: <200107061345.f66DjVa66095@postgresql.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