Re: n00b question re: indexes and constraints

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: n00b question re: indexes and constraints
Дата
Msg-id CAKFQuwZu9+VpqMFDYuxLs8sjTPj5wOWR+it8Pug4VPbMv7riBA@mail.gmail.com
обсуждение исходный текст
Ответ на n00b question re: indexes and constraints  (Wells Oliver <wells.oliver@gmail.com>)
Ответы Re: n00b question re: indexes and constraints
Список pgsql-admin
On Wed, Apr 22, 2020 at 11:26 AM Wells Oliver <wells.oliver@gmail.com> wrote:
Are constraints also indexes, or would you want an additional index on top of a constraint if you wanted that column/combo indexed?

No, having a constraint does not imply that an index exists.  However, the enforcement of a "unique" constraint is implemented by auto-creating a unique index.

David J.

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

Предыдущее
От: Wells Oliver
Дата:
Сообщение: n00b question re: indexes and constraints
Следующее
От: Wells Oliver
Дата:
Сообщение: Re: n00b question re: indexes and constraints