Re: n00b question re: indexes and constraints - Mailing list pgsql-admin

From David G. Johnston
Subject Re: n00b question re: indexes and constraints
Date
Msg-id CAKFQuwZu9+VpqMFDYuxLs8sjTPj5wOWR+it8Pug4VPbMv7riBA@mail.gmail.com
Whole thread Raw
In response to n00b question re: indexes and constraints  (Wells Oliver <wells.oliver@gmail.com>)
Responses Re: n00b question re: indexes and constraints  (Wells Oliver <wells.oliver@gmail.com>)
List 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 by date:

Previous
From: Wells Oliver
Date:
Subject: n00b question re: indexes and constraints
Next
From: Wells Oliver
Date:
Subject: Re: n00b question re: indexes and constraints