Re: Adding Serial Type

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Adding Serial Type
Дата
Msg-id 20050528182754.GA11909@wolff.to
обсуждение исходный текст
Ответ на Adding Serial Type  (David Pratt <fairwinds@eastlink.ca>)
Ответы Re: Adding Serial Type
Список pgsql-admin
On Sat, May 28, 2005 at 14:27:17 -0300,
  David Pratt <fairwinds@eastlink.ca> wrote:
> Pretty basic question. Is it necessary to add NOT NULL or UNIQUE NOT
> NULL to SERIAL or is this implicit and unnecessary?

Serials no longer generate a uniqie index by default. So in practice
you will normally want to declare them as PRIMARY KEYs. However there
are cases where you don't need this and the index is extra overhead.

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

Предыдущее
От: David Pratt
Дата:
Сообщение: Adding Serial Type
Следующее
От: David Pratt
Дата:
Сообщение: Re: Adding Serial Type