Re: inheritence behavior question ....

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: <tsmets(at)brutele(dot)be>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: inheritence behavior question ....
Date: 2002-03-25 03:20:36
Message-ID: 20020324191919.H29220-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 25 Mar 2002 tsmets(at)brutele(dot)be wrote:

>
> I did the following which sounds illogical to me :
> <snip>
> test=> create table father (col1 integer not null unique);
> NOTICE: CREATE TABLE/UNIQUE will create implicit index 'father_col1_key'
> for table 'father'
> CREATE
> test=> create table son (col2 integer) inherits (father);
> CREATE

Currently primary keys, unique constraints and foreign keys do not
inherit to child tables. There's also no current notion of unique
across the inheritance tree build in (you can probably kind of fake it
with an additional table and a bunch of rules, but...)

k

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Davis 2002-03-25 06:30:35 Another notify question
Previous Message Cornelia Boenigk 2002-03-25 03:12:43 Re: inheritence behavior question ....