X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 800845E46C1 for ; Wed, 18 Aug 2004 12:45:05 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28134-03 for ; Wed, 18 Aug 2004 15:45:08 +0000 (GMT) Received: from tht.net (vista.tht.net [216.126.88.2]) by svr1.postgresql.org (Postfix) with ESMTP id C20585E46BF for ; Wed, 18 Aug 2004 12:44:59 -0300 (ADT) Received: from [134.22.71.19] (dyn-71-19.tor.dsl.tht.net [134.22.71.19]) by tht.net (Postfix) with ESMTP id 9143B76AEC; Wed, 18 Aug 2004 11:45:07 -0400 (EDT) Subject: Re: multi column foreign key for implicitly unique columns From: Rod Taylor To: Jan Wieck Cc: Markus Bertheau , Josh Berkus , olly@lfix.co.uk, pgsql-sql@postgresql.org, Bruce Momjian In-Reply-To: <41236277.5060903@Yahoo.com> References: <1092734724.2627.4.camel@dicaprio.akademie1.de> <1092735576.28365.48.camel@linda> <1092736197.2627.12.camel@dicaprio.akademie1.de> <200408171945.15663.josh@agliodbs.com> <41235A90.1080300@Yahoo.com> <1092836961.2630.3.camel@dicaprio.akademie1.de> <41236277.5060903@Yahoo.com> Content-Type: text/plain Message-Id: <1092843903.32799.132.camel@jester> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 18 Aug 2004 11:45:03 -0400 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/198 X-Sequence-Number: 18695 > 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.