Re: multi column foreign key for implicitly unique columns

From: Rod Taylor <pg(at)rbt(dot)ca>
To: Jan Wieck <JanWieck(at)Yahoo(dot)com>
Cc: Markus Bertheau <twanger(at)bluetwanger(dot)de>, Josh Berkus <josh(at)agliodbs(dot)com>, olly(at)lfix(dot)co(dot)uk, pgsql-sql(at)postgresql(dot)org, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Re: multi column foreign key for implicitly unique columns
Date: 2004-08-18 15:45:03
Message-ID: 1092843903.32799.132.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> However, Bruce, this should be on the TODO list:
>
> * Allow foreign key to reference a superset of the columns
> covered by a unique constraint on the referenced table.

It would probably be more beneficial to be able to create a unique
constraint without requiring the fields be indexed.

Gets rid of most of the overhead from double uniques.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2004-08-18 16:02:42 Re: multi column foreign key for implicitly unique columns
Previous Message Bruce Momjian 2004-08-18 15:30:40 /contrib and win32