Re: [GENERAL] OID Question

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: [GENERAL] OID Question
Дата
Msg-id 20041111180130.GC25936@wolff.to
обсуждение исходный текст
Ответ на OID Question  (Terry Lee Tucker <terry@esc1.com>)
Ответы Re: [GENERAL] OID Question  (Geoffrey <esoteric@3times25.net>)
Список 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 по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: [GENERAL] OID Question
Следующее
От: Geoffrey
Дата:
Сообщение: Re: [GENERAL] OID Question