Re: Unique constraints and indexes. - Mailing list pgsql-general

From Tom Lane
Subject Re: Unique constraints and indexes.
Date
Msg-id 11612.1452023250@sss.pgh.pa.us
Whole thread Raw
In response to Unique constraints and indexes.  (Steve Rogerson <steve.pg@yewtc.demon.co.uk>)
Responses Re: Unique constraints and indexes.
List pgsql-general
Steve Rogerson <steve.pg@yewtc.demon.co.uk> writes:
> Is this a bug? I create a "unique" index, directly but it doesn't add a unique
> constraint. Add a unique constraint and it adds the index and the constraint.

That's operating as designed.  A unique constraint needs an index,
but not vice versa.

            regards, tom lane


pgsql-general by date:

Previous
From: Roland van Laar
Date:
Subject: Re: Code of Conduct: Is it time?
Next
From: Steve Rogerson
Date:
Subject: Re: Unique constraints and indexes.