Re: oids - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: oids
Date
Msg-id 20080211184545.GC953@crankycanuck.ca
Whole thread Raw
In response to Re: oids  (Bob Pawley <rjpawley@shaw.ca>)
List pgsql-general
On Mon, Feb 11, 2008 at 10:38:55AM -0800, Bob Pawley wrote:
> All of my tables are without oids.
>
> I have an application in which I drop, then recreate a table (to reset
> serial numbers) and with an update on the new information I get an error
> about a specific oid missing.
>
> Any thoughts would be appreciated.

Your application has the plan for accessing that table cached, and the way
the access happens "under the hood" is by the oid of the table.  This is the
"table oid" that someone upthread was mentioning.

There's probably a less kludgey way of resetting serial numbers.  Is this a
sequence?  What's wrong with setval()?

A


pgsql-general by date:

Previous
From: Bob Pawley
Date:
Subject: Re: oids
Next
From: Alvaro Herrera
Date:
Subject: Re: oids