From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gary Stainburn <gary.stainburn@ringways.co.uk>
Cc: Tomasz Myrta <jasiek@klaster.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: references table(multiple columns go here)
Date: Thu, 19 Dec 2002 10:17:13 -0500
Message-ID: <18473.1040311033@sss.pgh.pa.us> (raw)
In-Reply-To: <200212190928.19736.gary.stainburn@ringways.co.uk>
References: <200212181625.11316.gary.stainburn@ringways.co.uk>
<200212181718.42870.gary.stainburn@ringways.co.uk>
<8026.1040233829@sss.pgh.pa.us>
<200212190928.19736.gary.stainburn@ringways.co.uk>
Gary Stainburn <gary.stainburn@ringways.co.uk> writes:
> That did the trick. However, I now have another problem with the constraint
> complaining about there not being an index to refer to. However, there is.
No there isn't:
> jrank int4 not null references ranks(rrank), -- needs sorting
^^^^^^^^^^^^^^^^^^^^^^^
You have no index constraining rrank (by itself) to be unique.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, gary.stainburn@ringways.co.uk, jasiek@klaster.net
Subject: Re: references table(multiple columns go here)
In-Reply-To: <18473.1040311033@sss.pgh.pa.us>
* 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