Re: Bad Query Plans on 10.3 vs 9.6

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bad Query Plans on 10.3 vs 9.6
Дата
Msg-id 28562.1522337157@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Bad Query Plans on 10.3 vs 9.6  (Cory Tucker <cory.tucker@gmail.com>)
Ответы Re: Bad Query Plans on 10.3 vs 9.6
Список pgsql-general
Cory Tucker <cory.tucker@gmail.com> writes:
> relallvisible has a value of 0 for that table on both databases.

That would result in IOS being estimated at the same cost as a regular
indexscan, I believe, or very close to that anyway.

Is the 10.3 plan parallelized at all?  It's possible that the planner
thinks a parallel seqscan is faster than a nonparallel indexscan
(AFAIR, v10 doesn't have parallel indexscan).

The other likely explanation is simply that indexscanning a partitioned
table is not considered, or not correctly costed.  I'm not very sure what
the state of that code is, but certainly all the v10 partitioning logic is
still pretty wet behind the ears.

            regards, tom lane


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

Предыдущее
От: Ravi Krishna
Дата:
Сообщение: Question about AWS Calculator
Следующее
От: Alvar Freude
Дата:
Сообщение: Re: Question about buffers_alloc in pg_stat_bgwriter view formonitoring