Re: Foreign key question - Mailing list pgsql-general

From Tom Lane
Subject Re: Foreign key question
Date
Msg-id 22768.1074184651@sss.pgh.pa.us
Whole thread Raw
In response to Re: Foreign key question  (Terry Lee Tucker <terry@esc1.com>)
Responses Re: Foreign key question  (Martin Marques <martin@bugs.unl.edu.ar>)
List pgsql-general
Terry Lee Tucker <terry@esc1.com> writes:
> From the HTML docs:
> "The referenced columns must be the columns of a unique or primary key
> constraint in the referenced table."

> I personally don't know of a work around. Maybe some of the others do.

There is no workaround, because foreign keys don't make any sense if
there isn't a uniquely identifiable referenced row.

            regards, tom lane

pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Foreign key question
Next
From: Jan Wieck
Date:
Subject: Re: Oracle -> Postgres live translation?