Re: OID again

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Renaud Thonnart <thonnart(at)amwdb(dot)u-strasbg(dot)fr>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: OID again
Date: 2001-05-22 14:58:34
Message-ID: Pine.LNX.4.30.0105221657440.757-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

  • OID again at 2001-05-22 13:04:54 from Renaud Thonnart

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-05-22 15:00:14 Re: psql shell problem
Previous Message Oliver Elphick 2001-05-22 14:34:54 ZeroFill(.../pg_xlog/xlogtemp.20148) failed: No such file or directory