Referential integrity: broken rule?

From: "Franz J Fortuny" <ffortuny(at)ivsol(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Referential integrity: broken rule?
Date: 2000-10-11 19:18:26
Message-ID: 013401c033b8$087d91e0$3167a8c0@chapur
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

This table:

create table things
(
idthing integer not null,
isthis boolean not null
primary key(idthing,isthis)
....

)

would be referenced by this one:

create table forthings
(
fromthing integer not null references things(idthing),

....

)

The above SHOULD NOT be accepted, since table "things" did not declare
idthing as UNIQUE. However, it IS accepted under PostgreSQL (7.0.2).

Am I wrong?

Best regards,

F J Fortuny

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2000-10-11 22:15:09 Re: Referential integrity: broken rule?
Previous Message Stephan Szabo 2000-10-11 16:29:20 Re: SQL to retrieve foreign keys