finding current oid

From: "postgresql" <pgsql(at)symcom(dot)com>
To: "PgSQL-SQL" <pgsql-sql(at)postgresql(dot)org>
Subject: finding current oid
Date: 2001-07-06 13:46:58
Message-ID: 200107061345.f66DjVa66095@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Alex Pilosov 2001-07-06 13:47:17 Re: Transactions within a function
Previous Message Jeff Eckermann 2001-07-06 13:39:19 RE: While Using COPY COMMAND ...