Re: index not used with inherited tables - Mailing list pgsql-novice

From Verena Ruff
Subject Re: index not used with inherited tables
Date
Msg-id 44648116.6020908@triosolutions.at
Whole thread Raw
In response to Re: index not used with inherited tables  (Sean Davis <sdavis2@mail.nih.gov>)
Responses Re: index not used with inherited tables
List pgsql-novice
Hi,

Sean Davis schrieb:
>> one of these child tables is mitarbeiter:
>> CREATE TABLE mitarbeiter
>> (
>>   -- some fields --
>>   CONSTRAINT pers_id_pk_mitarbeiter PRIMARY KEY (pers_id)
>> ) INHERITS (person)
>>
> Hi, Verena.  See here:
>
> http://www.postgresql.org/docs/8.1/interactive/ut ddl-inherit.html
>
> Notice the "Caveats" section at the bottom.  Indexes are not inherited
But I define a new primary key constraint in the child table, using the
column frm the parent. Shouldn't create this an index implicitly?

Regards,
Verena

pgsql-novice by date:

Previous
From: Steve Tucknott
Date:
Subject: Re: Dev DB Structure Updates
Next
From: Tom Lane
Date:
Subject: Re: index not used with inherited tables