Re: index not used with inherited tables

From: Verena Ruff <lists(at)triosolutions(dot)at>
To: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>, pgsql-novice(at)postgresql(dot)org
Subject: Re: index not used with inherited tables
Date: 2006-05-12 12:35:34
Message-ID: 44648116.6020908@triosolutions.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2006-05-12 14:11:53 Re: index not used with inherited tables
Previous Message Steve Tucknott 2006-05-11 18:39:33 Re: Dev DB Structure Updates