From: Peter Eisentraut <e99re41@DoCS.UU.SE>
To: John C Cusick <jcc2@juno.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Getting last used oid
Date: Tue, 7 Dec 1999 17:53:40 +0100 (MET)
Message-ID: <Pine.GSO.4.02A.9912071751580.3057-100000@Panter.DoCS.UU.SE> (raw)
In-Reply-To: <19991207.113118.-748361.0.jcc2@juno.com>
On Tue, 7 Dec 1999, John C Cusick wrote:
> How can I call up the last oid used in an insert statement? I've checked
If you are writing in C, you can use the PQoidStatus() function. Similar
functions are provided in other language wrappers as well (e.g., Perl). A
way to do this in psql is going to be in the next release.
--
Peter Eisentraut Sernanders vaeg 10:115
peter_e@gmx.net 75262 Uppsala
http://yi.org/peter-e/ Sweden
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: e99re41@DoCS.UU.SE, jcc2@juno.com
Subject: Re: [SQL] Getting last used oid
In-Reply-To: <Pine.GSO.4.02A.9912071751580.3057-100000@Panter.DoCS.UU.SE>
References: <19991207.113118.-748361.0.jcc2@juno.com> <Pine.GSO.4.02A.9912071751580.3057-100000@Panter.DoCS.UU.SE>
* 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