Re: OID Usage

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To: Bo Lorentsen <bl(at)netgroup(dot)dk>
Cc: "pgsql-general postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: OID Usage
Date: 2005-01-14 08:16:13
Message-ID: 8E5F21BA-6604-11D9-8575-000A95C88220@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

  • OID Usage at 2005-01-14 07:03:24 from Bo Lorentsen

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bo Lorentsen 2005-01-14 09:07:33 Re: OID Usage
Previous Message Bo Lorentsen 2005-01-14 07:03:24 OID Usage