| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера