Re: index not used with inherited tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: index not used with inherited tables
Дата
Msg-id 24044.1147443113@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: index not used with inherited tables  (Verena Ruff <lists@triosolutions.at>)
Ответы Re: index not used with inherited tables  (Verena Ruff <lists@triosolutions.at>)
Список pgsql-novice
Verena Ruff <lists@triosolutions.at> writes:
> 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?

Yes, and I'm sure it did.  The more relevant question is how much data
do you have in the child table?  The planner generally won't bother with
an indexscan if the table is only one or two disk pages; trying to use
the index in such cases would end up fetching *more* disk pages overall.

            regards, tom lane

В списке pgsql-novice по дате отправления:

Предыдущее
От: Verena Ruff
Дата:
Сообщение: Re: index not used with inherited tables
Следующее
От: Verena Ruff
Дата:
Сообщение: Re: index not used with inherited tables