Re: SELECT performance drop

Поиск
Список
Период
Сортировка
От Jim Finnerty
Тема Re: SELECT performance drop
Дата
Msg-id 1548251452315-0.post@n3.nabble.com
обсуждение исходный текст
Ответ на Re: SELECT performance drop  (Jan Nielsen <jan.sture.nielsen@gmail.com>)
Ответы Re: SELECT performance drop  (Jan Nielsen <jan.sture.nielsen@gmail.com>)
Список pgsql-performance
One thing that isn't helping is that you have a redundant predicate.  The
selectivity of this predicate is also estimated too low, so removing the
redundant predicate might improve the estimate and change the plan:

(                                                 "
         + "         o.consumer IS NULL                                "
         + "    ) OR (                                                 "
         + "         o.consumer IS NOT NULL                            "
         + "     AND o.consumer > 0  

remove "o.consumer IS NOT NULL AND", which is implied by o.consumer > 0. 
This predicate should have been automatically removed, but the filter shown
in depesz shows that it was not.

If you can find out what the faster plan was, that would be helpful to know.



-----
Jim Finnerty, AWS, Amazon Aurora PostgreSQL
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-performance-f2050081.html


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

Предыдущее
От: Jan Nielsen
Дата:
Сообщение: Re: SELECT performance drop
Следующее
От: Mariel Cherkassky
Дата:
Сообщение: ERROR: found xmin from before relfrozenxid