Re: A problem about join ordering - Mailing list pgsql-hackers

From Tom Lane
Subject Re: A problem about join ordering
Date
Msg-id 522744.1668180274@sss.pgh.pa.us
Whole thread Raw
In response to A problem about join ordering  (Richard Guo <guofenglinux@gmail.com>)
Responses Re: A problem about join ordering
Re: A problem about join ordering
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Optimize join selectivity estimation by not reading MCV stats for unique join attributes
Next
From: "Imseih (AWS), Sami"
Date:
Subject: Re: Call lazy_check_wraparound_failsafe earlier for parallel vacuum