From: Richard Poole <rp@guests.deus.net>
To: pgsql-admin@postgresql.org
Subject: Re: Multiple keys?
Date: Wed, 28 Aug 2002 11:22:47 +0100
Message-ID: <20020828102247.GA23727@guests.deus.net> (raw)
In-Reply-To: <200208280210.44746.cshobe@secureworks.net>
References: <200208280210.44746.cshobe@secureworks.net>
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
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: rp@guests.deus.net
Subject: Re: Multiple keys?
In-Reply-To: <20020828102247.GA23727@guests.deus.net>
References: <200208280210.44746.cshobe@secureworks.net> <20020828102247.GA23727@guests.deus.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