Re: postgresql 10.1 wrong plan in when using partitions bug

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: postgresql 10.1 wrong plan in when using partitions bug
Дата
Msg-id 15592.1517758751@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: postgresql 10.1 wrong plan in when using partitions bug  (Mariel Cherkassky <mariel.cherkassky@gmail.com>)
Ответы Re: postgresql 10.1 wrong plan in when using partitions bug  (Mariel Cherkassky <mariel.cherkassky@gmail.com>)
Список pgsql-performance
Mariel Cherkassky <mariel.cherkassky@gmail.com> writes:
> Great, it solved the issue. Seems problematic that the planner do full
> scans on all partitions in the first case isnt it ? Seems like a bug ?

to_date isn't an immutable function (it depends on timezone and possibly
some other GUC settings).  So there's a limited amount that the planner
can do with it.

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: postgresql 10.1 wrong plan in when using partitions bug
Следующее
От: Mariel Cherkassky
Дата:
Сообщение: Re: postgresql 10.1 wrong plan in when using partitions bug