Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8203F475914 for ; Wed, 28 Aug 2002 06:22:46 -0400 (EDT) Received: from jalapeno.crazydogs.org (unknown [212.78.70.100]) by postgresql.org (Postfix) with ESMTP id 0088747580B for ; Wed, 28 Aug 2002 06:22:46 -0400 (EDT) Received: from rp by jalapeno.crazydogs.org with local (Exim 3.35 #1 (Debian)) id 17jzyJ-0004MG-00 for ; Wed, 28 Aug 2002 11:22:47 +0100 Date: Wed, 28 Aug 2002 11:22:47 +0100 From: Richard Poole To: pgsql-admin@postgresql.org Subject: Re: Multiple keys? Message-ID: <20020828102247.GA23727@guests.deus.net> References: <200208280210.44746.cshobe@secureworks.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200208280210.44746.cshobe@secureworks.net> User-Agent: Mutt/1.3.28i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/317 X-Sequence-Number: 5431 On Wed, Aug 28, 2002 at 02:10:44AM -0400, Casey Allen Shobe wrote: > In order to get the foreign key I want working, I had to have two unique > references on the parent table, though the second covers two columns that are > contained within the first. Is this wise? Is there a better way? Your two-column constraint, the one you need to add to get your foreign key working, implies your three-column one. So you can just get rid of the three-column one. Richard