Re: Primary keys and indexes

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Primary keys and indexes
Дата
Msg-id 20050121212009.GA1022@wolff.to
обсуждение исходный текст
Ответ на Primary keys and indexes  ("Keith Worthington" <keithw@narrowpathinc.com>)
Список pgsql-novice
On Fri, Jan 21, 2005 at 15:54:36 -0500,
  Keith Worthington <keithw@narrowpathinc.com> wrote:
> Hi All,
>
> Does building a primary key constraint automatically generate an index?  Using
> pgadmin I cannot see it if it does.  Should I explicitly build indexes on
> primary keys?  Wouldn't building a unique index on the same columns as the
> primary key be redundent?  Your guidance is appreciated.

Yes, when you declare a primary (or unique) key a unique index over the
columns of the key is created.

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

Предыдущее
От: "Keith Worthington"
Дата:
Сообщение: Primary keys and indexes
Следующее
От: "Keith Worthington"
Дата:
Сообщение: Upgrade from v8rc5 to 8.0.0 fails