Re: OID Usage - Mailing list pgsql-general

From Michael Glaesemann
Subject Re: OID Usage
Date
Msg-id 8E5F21BA-6604-11D9-8575-000A95C88220@myrealbox.com
Whole thread Raw
In response to OID Usage  (Bo Lorentsen <bl@netgroup.dk>)
Responses Re: OID Usage
List pgsql-general
On Jan 14, 2005, at 16:03, Bo Lorentsen wrote:

> Now, are there any danger in using this method ? And if there is, how
> can I do this trick without knowing the layout of the table I insert
> into ?

You can use currval() to get the sequence value that was pulled from
your insert. You can check the documentation for usage, as well as
searching the archives for discussions of using OIDs as part of your
database logic.

Hope this helps.


Michael Glaesemann
grzm myrealbox com


pgsql-general by date:

Previous
From: Bo Lorentsen
Date:
Subject: OID Usage
Next
From: Bo Lorentsen
Date:
Subject: Re: OID Usage