Re: A problem about join ordering

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: A problem about join ordering
Дата
Msg-id 522744.1668180274@sss.pgh.pa.us
обсуждение исходный текст
Ответ на A problem about join ordering  (Richard Guo <guofenglinux@gmail.com>)
Ответы Re: A problem about join ordering  (Richard Guo <guofenglinux@gmail.com>)
Re: A problem about join ordering  (Richard Guo <guofenglinux@gmail.com>)
Список pgsql-hackers
Richard Guo <guofenglinux@gmail.com> writes:
> I'm wondering whether we need to insist on being strict for the lower
> OJ's min_righthand.  What if we instead check strictness for its whole
> syn_righthand?

Surely not.  What if the only point of strictness is for a rel that
isn't part of the min_righthand?  Then we could end up re-ordering
based on a condition that isn't actually strict for what we've
chosen as the join's RHS.

It might be possible to change the other part of the equation and
consider the A/B join's min_righthand instead of syn_righthand
while checking if Pcd uses A/B's RHS; but I'm not real sure about
that either.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Optimize join selectivity estimation by not reading MCV stats for unique join attributes
Следующее
От: "Imseih (AWS), Sami"
Дата:
Сообщение: Re: Call lazy_check_wraparound_failsafe earlier for parallel vacuum