pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Casey Allen Shobe <cshobe@secureworks.net>
To: Richard Poole <rp@guests.deus.net>
To: pgsql-admin@postgresql.org
Subject: Re: Multiple keys?
Date: Wed, 28 Aug 2002 06:34:55 -0400
Message-ID: <200208280634.55534.cshobe@secureworks.net> (raw)
In-Reply-To: <20020828102247.GA23727@guests.deus.net>
References: <200208280210.44746.cshobe@secureworks.net>
	<20020828102247.GA23727@guests.deus.net>

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 unique 
combination of the three, but I want the second table to be constrained by a 
unique combination of only the two, as the third column is not present in the 
second table.

I'm uncertain what to do, but I thank you for pointing out my error in 
overconstraining the first table.

-- 
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 him, 
'You think the gods have no care for humans?  Why, you can see from all these 
votive pictures here how many people have escaped the fury of storms at sea 
by praying to the gods, who have brought them safe to harbour.'  'Yes, 
indeed,' said Diagoras, 'but where are the pictures of all those who suffered 
shipwreck and perished in the waves?'  On another occasion he was on a voyage 
and the crew became anxious about the bad weather and began to mutter that it 
served them right for taking an atheist on board.  Diagoras just pointed out 
to them a number of other ships on the same course which were in equal 
difficulties and asked them whether they thought that there was a Diagoras on 
the passenger-list of every one of them.  The fact is that a man's character 
or way of life makes no difference at all to his good luck or bad."

- Cicero



view thread (5+ messages)  latest in thread

Message-ID: <200208280634.55534.cshobe@secureworks.net>
Permalink:  ../200208280634.55534.cshobe@secureworks.net/
Also on:    postgresql.org/message-id/200208280634.55534.cshobe@secureworks.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: cshobe@secureworks.net, rp@guests.deus.net
  Subject: Re: Multiple keys?
  In-Reply-To: <200208280634.55534.cshobe@secureworks.net>
  References: <200208280210.44746.cshobe@secureworks.net> <20020828102247.GA23727@guests.deus.net> <200208280634.55534.cshobe@secureworks.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox