pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: postgresql <pgsql@symcom.com>
Cc: PgSQL-SQL <pgsql-sql@postgresql.org>
Subject: Re: finding current oid
Date: Fri, 6 Jul 2001 17:10:15 +0200 (CEST)
Message-ID: <Pine.LNX.4.30.0107061709170.679-100000@peter.localdomain> (raw)
In-Reply-To: <200107061345.f66DjVa66095@postgresql.org>

postgresql writes:

> Is there a way to return the current oid of a transaction?

Transactions don't have oids, only table rows do.  The libpq function
PQoidValue() will possibly give you the last affected oid.

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter




view thread (2+ messages)

Message-ID: <Pine.LNX.4.30.0107061709170.679-100000@peter.localdomain>
Permalink:  ../Pine.LNX.4.30.0107061709170.679-100000@peter.localdomain/
Also on:    postgresql.org/message-id/Pine.LNX.4.30.0107061709170.679-100000@peter.localdomain

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: peter_e@gmx.net, pgsql@symcom.com
  Subject: Re: finding current oid
  In-Reply-To: <Pine.LNX.4.30.0107061709170.679-100000@peter.localdomain>
  References: <200107061345.f66DjVa66095@postgresql.org> <Pine.LNX.4.30.0107061709170.679-100000@peter.localdomain>

* 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