Re: [GENERAL] OID Question - Mailing list pgsql-novice

From Bruno Wolff III
Subject Re: [GENERAL] OID Question
Date
Msg-id 20041111180130.GC25936@wolff.to
Whole thread Raw
In response to OID Question  (Terry Lee Tucker <terry@esc1.com>)
Responses Re: [GENERAL] OID Question  (Geoffrey <esoteric@3times25.net>)
List pgsql-novice
On Thu, Nov 11, 2004 at 10:04:30 -0500,
  Terry Lee Tucker <terry@esc1.com> wrote:
> Greetings,
>
> Here is a simple question:
>
> Is it ok to put a unique index on the oid for my tables? We are in the process

Yes, but you may occasionally have insert failures if the oid wraps around
and you try to reuse one on an insert.

> of moving from Progress Software to PostgreSQL. In the Progress world, you
> can always uniquely, and quickly find a record by using their version of oid,
> which is recid.  I remember reading somewhere that the oid could be

You should probably just use a normal column named recid and not try to
use the special oid column to do this.

> duplicated across the cluster, but would not be duplicated in a single table.
> Maybe I dreamed it. What is the recommendation regarding this and why?

pgsql-novice by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: [GENERAL] OID Question
Next
From: Geoffrey
Date:
Subject: Re: [GENERAL] OID Question