Re: OID again - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: OID again
Date
Msg-id Pine.LNX.4.30.0105221657440.757-100000@peter.localdomain
Whole thread Raw
In response to OID again  (Renaud Thonnart <thonnart@amwdb.u-strasbg.fr>)
List pgsql-general
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


pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: psql shell problem
Next
From: Peter Eisentraut
Date:
Subject: Re: psql shell problem