Fwd: Re: HELP! foreign eys & inheritance

From: Horst Herb <hherb(at)malleenet(dot)net(dot)au>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Fwd: Re: HELP! foreign eys & inheritance
Date: 2000-12-12 14:25:40
Message-ID: 00121301254004.03185@munin.midgard
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ooops, sorry, error in this example:
> The following example worked in previous versions (7.0.2 was the last I
> tested), but not in 7.1 any more:
>
> create table parent (
> global_id serial
> );
>
> create table child (
> anything text
> ) inherits (parent);
>
> create table foreign (
> fk_id int4 references child(global_id) on update cascade on delete no

action
^^^^^ child, of course, not parent!

> ) inherits (parent);
>
> test.sql:83: ERROR: UNIQUE constraint matching given keys for referenced
> table "child" not found
> WHY ???
>
> I would appreciate any help. Our database depends heavily on this.
>
> Horst

-------------------------------------------------------

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oliver Elphick 2000-12-12 14:29:25 Re: RPM changes for 7.1.
Previous Message Bruce Momjian 2000-12-12 14:01:21 Re: AW: SourceForge & Postgres (attdispursion)