Re: references table(multiple columns go here)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gary Stainburn <gary(dot)stainburn(at)ringways(dot)co(dot)uk>
Cc: Tomasz Myrta <jasiek(at)klaster(dot)net>, pgsql-sql(at)postgresql(dot)org
Subject: Re: references table(multiple columns go here)
Date: 2002-12-19 15:17:13
Message-ID: 18473.1040311033@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Gary Stainburn <gary(dot)stainburn(at)ringways(dot)co(dot)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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Gary Stainburn 2002-12-19 15:22:30 Re: references table(multiple columns go here)
Previous Message Robert Treat 2002-12-19 14:47:12 Re: unsubscribe