From: Greg Sabino Mullane <greg@turnstep.com>
To: pgsql-admin@postgresql.org
Subject: Re: sequence value of the record just inserted.
Date: Thu, 15 Apr 2004 02:01:18 -0000
Message-ID: <4e5c4ed5e8ba92358d5915d003ac8d59@biglumber.com> (raw)
In-Reply-To: <Pine.GSO.4.10.10404140834220.3753-100000@edsun.coe.tamu.edu>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Also, in perl DBI, the solutions all require executing at least
> 2 sql statements.
Nothing wrong with that.
> I initially hoped there'd be a way to get the oid or sequence number
> at the same time as executing an INSERT (one sql statement), like I
> get oid in psql. But I use perl DBI, so am not sure how I can get the
> oid into a perl variable.
See the documentation for pg_oid_status in DBD::Pg.
- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200404142201
-----BEGIN PGP SIGNATURE-----
iD8DBQFAfe07vJuQZxSWSsgRAsFgAKCw3NkMiZiwZb5gjxu1Q+Nj9wwkpACcDj1n
gxSIKAGNJefZaJCmU6+tpgs=
=GLPy
-----END PGP SIGNATURE-----
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-admin@postgresql.org
Cc: greg@turnstep.com
Subject: Re: sequence value of the record just inserted.
In-Reply-To: <4e5c4ed5e8ba92358d5915d003ac8d59@biglumber.com>
References: <Pine.GSO.4.10.10404140834220.3753-100000@edsun.coe.tamu.edu> <4e5c4ed5e8ba92358d5915d003ac8d59@biglumber.com>
* 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