| От | Tom Lane |
|---|---|
| Тема | Re: Optimizer oddness, possibly compounded in 8.1 |
| Дата | |
| Msg-id | 2954.1133538168@sss.pgh.pa.us обсуждение |
| Ответ на | Optimizer oddness, possibly compounded in 8.1 (Philip Warner <pjw@rhyme.com.au>) |
| Ответы |
Re: Optimizer oddness, possibly compounded in 8.1
|
| Список | pgsql-hackers |
Philip Warner <pjw@rhyme.com.au> writes:
> The optimizer seems to want to use sequential scans on inherited tables
> when crossed with another table, as the following seems to demonstrate:
Is it intentional that your test case omits an analyze on t2? Coz when
I add that, I get the same plan you show for 8.0. Without the knowledge
that t2 is small, that plan is not a good choice.
(The larger point that joins of inheritance unions aren't well-planned
is true, but it's always been true...)
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера