On Sat, Oct 10, 2026 at 7:49 PM Richard Guo <[email protected]> wrote: > +1 to this idea, and I think we can take it one step further. > root->initial_rels contains all the inputs of the current join search, > base rels as well as sub-joinlist joinrels, so a single loop over it > can replace the loop over simple_rel_array in v1. For each input that > laterally references a rel found so far, we add all of its relids. > > Hence, the attached v2.
Pushed and back-patched to all supported branches. Thanks for all the reviews. - Richard
