Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D1801475914 for ; Wed, 28 Aug 2002 07:02:31 -0400 (EDT) Received: from atlexchange.secureworks.net (mail.secureworks.net [209.101.212.155]) by postgresql.org (Postfix) with ESMTP id 70A2947580B for ; Wed, 28 Aug 2002 07:02:09 -0400 (EDT) Received: from nemain (gabrielle.internal.secureworks.net [192.168.14.102]) by atlexchange.secureworks.net with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id R3J7W8TQ; Wed, 28 Aug 2002 06:36:42 -0400 Content-Type: text/plain; charset="iso-8859-1" From: Casey Allen Shobe Organization: SecureWorks, Inc. To: Richard Poole , pgsql-admin@postgresql.org Subject: Re: Multiple keys? Date: Wed, 28 Aug 2002 06:34:55 -0400 User-Agent: KMail/1.4.1 References: <200208280210.44746.cshobe@secureworks.net> <20020828102247.GA23727@guests.deus.net> In-Reply-To: <20020828102247.GA23727@guests.deus.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200208280634.55534.cshobe@secureworks.net> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/318 X-Sequence-Number: 5432 On Wednesday 28 August 2002 06:22 am, Richard Poole wrote: > 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. Hmm, that's a problem :\. See I want the table to be constrained by a uniq= ue=20 combination of the three, but I want the second table to be constrained by = a=20 unique combination of only the two, as the third column is not present in t= he=20 second table. I'm uncertain what to do, but I thank you for pointing out my error in=20 overconstraining the first table. --=20 Casey Allen Shobe / Network Security Analyst & PHP Developer SecureWorks, Inc. / 404.327.6339 x169 / Fax: 404.728.0144 cshobe@secureworks.net / http://www.secureworks.net Content is my own and does not necessarily represent my company. "Diagoras the Atheist once visited Samothrace and a friend there said to hi= m,=20 'You think the gods have no care for humans? Why, you can see from all the= se=20 votive pictures here how many people have escaped the fury of storms at sea= =20 by praying to the gods, who have brought them safe to harbour.' 'Yes,=20 indeed,' said Diagoras, 'but where are the pictures of all those who suffer= ed=20 shipwreck and perished in the waves?' On another occasion he was on a voya= ge=20 and the crew became anxious about the bad weather and began to mutter that = it=20 served them right for taking an atheist on board. Diagoras just pointed ou= t=20 to them a number of other ships on the same course which were in equal=20 difficulties and asked them whether they thought that there was a Diagoras = on=20 the passenger-list of every one of them. The fact is that a man's characte= r=20 or way of life makes no difference at all to his good luck or bad." - Cicero