Re: multi column foreign key for implicitly unique columns - Mailing list pgsql-sql

From Rod Taylor
Subject Re: multi column foreign key for implicitly unique columns
Date
Msg-id 1092847573.32799.148.camel@jester
Whole thread Raw
In response to Re: multi column foreign key for implicitly unique columns  (Jan Wieck <JanWieck@Yahoo.com>)
List pgsql-sql
On Wed, 2004-08-18 at 12:27, Jan Wieck wrote:
> On 8/18/2004 12:18 PM, Tom Lane wrote:
> 
> > Richard Huxton <dev@archonet.com> writes:
> >> * Allow multiple unique constraints to share an index where one is a 
> >> superset of the others' columns.
> > 
> >> That way you can mark it unique without having the overhead of multiple 
> >> indexes.
> > 
> > That just moves the uncertain-dependency problem over one spot, ie, it's
> > the fabricated unique constraint that you can't pin down the
> > requirements for.
> 
> If we allow for a unique index, that

Silly question, but why does UNIQUE require an index at all? Yes,
current implementation does, and agreed that checks will be mighty slow
without an index (so are CASCADES to a non-indexed column)...




pgsql-sql by date:

Previous
From: Jan Wieck
Date:
Subject: Re: multi column foreign key for implicitly unique columns
Next
From: Tom Lane
Date:
Subject: Re: multi column foreign key for implicitly unique columns