Re: BUG #1514: Inheritance and Primary Keys - Mailing list pgsql-bugs

From Michael Fuhr
Subject Re: BUG #1514: Inheritance and Primary Keys
Date
Msg-id 20050307042222.GA23449@winnie.fuhr.org
Whole thread Raw
In response to BUG #1514: Inheritance and Primary Keys  ("Peter Newman" <pnewman@wanadoo.nl>)
List pgsql-bugs
On Wed, Mar 02, 2005 at 03:23:27PM +0000, Peter Newman wrote:

> So my point is (if it is not clear) that the primary key constraint is not
> enforced through subclass tables.  Is this intentional?

It's a documented limitation of the current implementation.  Here's
an excerpt from the "Inheritance" section of the "Data Definition"
chapter of the documentation:

    A limitation of the inheritance feature is that indexes (including
    unique constraints) and foreign key constraints only apply to
    single tables, not to their inheritance children.

http://www.postgresql.org/docs/8.0/interactive/ddl-inherit.html

Fixing inheritance limitations is on the developers' TODO list --
it's just a matter of somebody deciding it's important enough to
work on.

http://developer.postgresql.org/todo.php

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

pgsql-bugs by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: BUG #1527: select retrieves 0 rows after vacuum analyze
Next
From: Hans-Jürgen Schönig
Date:
Subject: Re: BUG #1519: server closed the connection unexpectedly