Re: Difference between UNIQUE constraint vs index - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: Difference between UNIQUE constraint vs index
Date
Msg-id 45E4D3BF.4010107@commandprompt.com
Whole thread Raw
In response to Difference between UNIQUE constraint vs index  ("John Jawed" <johnjawed@gmail.com>)
List pgsql-general
John Jawed wrote:
> Is there any difference as far as when the "uniqueness" of values is
> checked in DML between a unique index vs a unique constraint? Or is
> the only difference syntax between unique indices and constraints in
> PostgreSQL?

They are functionally the same and unique constraint will create a
unique index.

Joshua D. Drake

>
> John
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
>               http://www.postgresql.org/docs/faq
>


--

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
             http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/


pgsql-general by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Difference between UNIQUE constraint vs index
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Slony subscription problem