AW: PLEASE help with foreign key and inheritance proble m

From: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>
To: "'Horst Herb'" <hherb(at)malleenet(dot)net(dot)au>, pgsql-hackers(at)postgresql(dot)org
Subject: AW: PLEASE help with foreign key and inheritance proble m
Date: 2000-12-13 12:59:02
Message-ID: 11C1E6749A55D411A9670001FA68796336817A@sdexcsrv1.f000.d0188.sd.spardat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> I stated this before, but I did not get a helpful answer. I
> might have
> misunderstood tghe documentation on foreign keys:
>
> create table global(id serial);
> create table child(anything text) inherits(global);

need:
create unique index child_id_index on child (id);

> gives me an error:
> CREATE TABLE will create implicit trigger(s) for FOREIGN KEY check(s)
> ERROR: UNIQUE constraint matching given keys for referenced
> table "child"
> not found

Then the above works.
Actually the error message sounds sufficiently clear to me, no?

Andreas

Browse pgsql-hackers by date

  From Date Subject
Next Message mlw 2000-12-13 13:11:41 Re: external function proposal for 7.2
Previous Message Max Khon 2000-12-13 12:45:55 left join bug?