Re: Insert may fail if i create a primary key on the oid

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Insert may fail if i create a primary key on the oid
Дата
Msg-id 41A473BD.5010708@archonet.com
обсуждение исходный текст
Ответ на Insert may fail if i create a primary key on the oid column?  ("songsubo" <songsubo@163.com>)
Список pgsql-general
songsubo wrote:
> I create a primary key on the "oid" column. The oid is generate by
> system itself. The oid may overlap, when this happen, this operation
> may fail?

Yes. If you want a self-incrementing primary key, why not use a SERIAL type?

--
  Richard Huxton
  Archonet Ltd

В списке pgsql-general по дате отправления:

Предыдущее
От: "Net Virtual Mailing Lists"
Дата:
Сообщение: Re: Creating index on a view?
Следующее
От: Francis Reed
Дата:
Сообщение: Moving/Using Postgres Binaries on multiple machines