Re: OID again - Mailing list pgsql-general

From Renaud Thonnart
Subject Re: OID again
Date
Msg-id 3B0BCD23.9A67BE6F@amwdb.u-strasbg.fr
Whole thread Raw
In response to Re: OID again  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-general
Thank you for your help Peter !

Renaud THONNART

Peter Eisentraut wrote:

> Renaud Thonnart writes:
>
> > I would like to know if it was possible to get the OID of a tuple when
> > we insert it, but not by making a "SELECT oid ... "
> > Perhaps does a function of libpq++ exist?
> > Something like :
> >
> >
> >     data.Exec("INSERT INTO table VALUES (10,20, 'aaa')");
> >     int oid = data.GetOid();
>
> There's a function called PQoidValue() in libpq.  Not sure if it's
> available through libpq++, though.
>
> --
> Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html


pgsql-general by date:

Previous
From: Carlos Felipe Zirbes
Date:
Subject: RE: Can't find destroydb
Next
From: Tom Lane
Date:
Subject: Re: Estimating costs (was Functional Indices)