Re: Question about Indexes...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Question about Indexes...
Дата
Msg-id 21479.1073148750@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Question about Indexes...  ("Alan T. Miller" <amiller@hollywood101.com>)
Список pgsql-novice
"Alan T. Miller" <amiller@hollywood101.com> writes:
> If I create a table and assign the column type for what will be the primary
> key the value of "Serial", do I need to explicitly create an index in
> addition?

Either PRIMARY KEY or UNIQUE implies an index (for any column datatype).
They even put out notices to tell you so.

> I was thinking that a Serial, would automatically be a Unique Index wouldn't
> it?

Not in recent releases --- a SERIAL column is just an integer with a
special default value.

            regards, tom lane

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

Предыдущее
От: Aarni Ruuhimäki
Дата:
Сообщение: Re: Question about Indexes...
Следующее
От: Andreas
Дата:
Сообщение: Re: Question about Indexes...