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

From Tom Lane
Subject Re: Difference between UNIQUE constraint vs index
Date
Msg-id 4211.1172678600@sss.pgh.pa.us
Whole thread Raw
In response to Re: Difference between UNIQUE constraint vs index  ("Brandon Aiken" <BAiken@winemantech.com>)
Responses Re: Difference between UNIQUE constraint vs index  ("Brandon Aiken" <BAiken@winemantech.com>)
List pgsql-general
"Brandon Aiken" <BAiken@winemantech.com> writes:
> SQLite, MySQL, and MS Access each use indexes for unique constraints.
> Doesn't the SQL spec specify that CREATE INDEX can be used to create
> UNIQUE indexes?

No, there is no such command in the SQL spec.  In fact the concept of an
index does not appear anywhere in the spec ... it's an implementation
detail.

            regards, tom lane

pgsql-general by date:

Previous
From: "Andrew Madu"
Date:
Subject: PostgreSQL 8.2.3, Jboss 4.0.3 and postgresql-8.2-504.jdbc4
Next
From: Rich Shepard
Date:
Subject: Re: Post-Reboot Issue: Postmaster Not Accessible