Re: index not used with inherited tables

Поиск
Список
Период
Сортировка
От Verena Ruff
Тема Re: index not used with inherited tables
Дата
Msg-id 44648116.6020908@triosolutions.at
обсуждение исходный текст
Ответ на Re: index not used with inherited tables  (Sean Davis <sdavis2@mail.nih.gov>)
Ответы Re: index not used with inherited tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Steve Tucknott
Дата:
Сообщение: Re: Dev DB Structure Updates
Следующее
От: Tom Lane
Дата:
Сообщение: Re: index not used with inherited tables