Re: Ever increasing OIDs - gonna run out soon?

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "Alex Turner" <armtuk(at)gmail(dot)com>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Martijn van Oosterhout" <kleptog(at)svana(dot)org>, "John Sidney-Woollett" <johnsw(at)wardbrook(dot)com>, "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Ever increasing OIDs - gonna run out soon?
Date: 2006-06-12 20:32:45
Message-ID: b42b73150606121332j61c08230ta87a2b754243ab63@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 6/12/06, Alex Turner <armtuk(at)gmail(dot)com> wrote:
> Just a quick thought - I know that I don't fully understand tables with
> oids, and table without oids, is there a link to some more information about
> why you need oids, or why you don't that I could reference as I'm a bit lost
> on the subject of oids

dont get lost, just forget you ever heard about them :). oid is a
'free' userland autoincrement counter which has some problems. It was
a hidden column that in older versions of postgresql was implicitly
added to your tables. newer versions of pg assume you dont want OIDs
on your table. (system tables still use them, tho).

for purposes of a global counter or table level ID generator,
sequences are basically better in every way. use them. some
middleware such as the odbc driver used to work better/easier if you
had a column but afaik this is not the case anymore.

Merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim C. Nasby 2006-06-12 20:38:06 Re: Ever increasing OIDs - gonna run out soon?
Previous Message John Sidney-Woollett 2006-06-12 20:21:31 Re: Ever increasing OIDs - gonna run out soon?