pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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



view thread (13+ messages)  latest in thread

Message-ID: <18473.1040311033@sss.pgh.pa.us>
Permalink:  ../18473.1040311033@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18473.1040311033@sss.pgh.pa.us

 · 

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 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