Re: Planner making bad choice in alternative subplan decision

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Planner making bad choice in alternative subplan decision
Дата
Msg-id 475466.1601334537@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Planner making bad choice in alternative subplan decision  (David Rowley <dgrowleyml@gmail.com>)
Ответы Re: Planner making bad choice in alternative subplan decision
Re: Planner making bad choice in alternative subplan decision
Список pgsql-hackers
David Rowley <dgrowleyml@gmail.com> writes:
> Any opinions on this?

This patch scares the heck out of me.  It's a pretty much unprincipled
change in a fundamental selectivity estimator, which is going to affect
all sorts of queries not only the particular case you have in mind.
There's no reason to think that the outcome will be positive for other
cases, either.

The idea I'd had was to adjust make_subplan and cost_subplan to estimate
EXIST cases on the basis of either 50% retrieval (same as ANY/ALL) or
maybe full retrieval if you want to be pessimistic.  I've not had time
to try it out though.

            regards, tom lane



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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: Planner making bad choice in alternative subplan decision
Следующее
От: Andy Fan
Дата:
Сообщение: Re: Partition prune with stable Expr