Re: OID again

From: Renaud Thonnart <thonnart(at)amwdb(dot)u-strasbg(dot)fr>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: OID again
Date: 2001-05-23 14:45:55
Message-ID: 3B0BCD23.9A67BE6F@amwdb.u-strasbg.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-05-23 14:48:35 Re: Estimating costs (was Functional Indices)
Previous Message Carlos Felipe Zirbes 2001-05-23 14:00:47 RE: Can't find destroydb