Re: Foreign keys referencing parent table fails on insert

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: postgresbugs <postgresbugs(at)grifent(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Foreign keys referencing parent table fails on insert
Date: 2004-12-03 04:32:43
Message-ID: 20041202203001.L37573@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


On Thu, 2 Dec 2004, postgresbugs wrote:

>
> On Wed, 1 Dec 2004, Stephan Szabo wrote:
>
> On Wed, 1 Dec 2004, postgresbugs wrote:
>
> > Foreign keys referencing parent table fails on insert if the key is in
> > the table that inherits the parent table.
>
>
> Unfortunately, primary keys, unique constraints and foreign keys do not
> inherit to children in a meaningful fashion. It's one of the big
> deficiencies right now.
>
>
>
>
> Too bad. Table inheritance is pretty meaningless without these
> abilities. Anyone working on them? In the meantime, I will go back to
> views and updating the underlying tables.

There's noone actively working on it at the moment that I know of (and if
there is, hopefully they'll see this and correct me) although I believe
there was some noise in the last dev cycle of people thinking about the
unique (and pkey) side of it.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Magnus Hagander 2004-12-03 09:17:31 Re: Installation fails for postgresql-8.0.0-beta4 on Windo
Previous Message Tom Lane 2004-12-03 01:35:53 Re: "invalid memory alloc request size <n>" in deferred trigger causes transaction to fail, but the backend keeps running