Re: patch: Distinguish between unique indexes and unique constraints

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Josh Kupershmidt <schmiddy(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: patch: Distinguish between unique indexes and unique constraints
Date: 2010-04-18 15:23:06
Message-ID: 22202.1271604186@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> You know, I've never really understood the difference between these
> two types of things, or why we need to support both. Which may be
> just because I'm slow?

Unique constraints are defined by the SQL standard, and have a syntax
that can't support a lot of the extensions that CREATE INDEX allows.
There's also restrictions in the information_schema views.
So unifying the two concepts completely would be a mess.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2010-04-18 15:41:37 Re: patch: Distinguish between unique indexes and unique constraints
Previous Message Robert Haas 2010-04-18 15:18:11 Re: patch: Distinguish between unique indexes and unique constraints