| От | Tom Lane |
|---|---|
| Тема | Re: select max(column) from parent table very slow |
| Дата | |
| Msg-id | 18394.1156480407@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: select max(column) from parent table very slow ("Joshua D. Drake" <jd@commandprompt.com>) |
| Ответы |
Re: select max(column) from parent table very slow
|
| Список | pgsql-performance |
"Joshua D. Drake" <jd@commandprompt.com> writes:
> Sriram Dandapani wrote:
>> Parent table has a column say column1 which is indexed (parent table and
>> all child tables are indexed on that column)
> In older versions of postgresql that would scan the whole table. In 8.1
> and above it doesn't. However, I am guess that since this is a
> partitioned table the planner isn't smart enough to just perform the
> query on each child and a max on the set that is returned.
It is not. Feel free to submit a patch for planagg.c ...
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера