On 5/19/23 23:50, Tom Lane wrote:
> Richard Guo <guofenglinux(at)gmail(dot)com> writes:
>> ...
>> We'd be mistaken to think t1/t2 join is removable, because we are
>> checking its syntactic relid set, which includes all rels, and so that
>> are not aware that t2.a is used by t2/t3 join.
> ...
> I think your patch is correct.
Because the feature pushed into the master, I checked it with the
sqlancer tests. During all-weekend run no any problems were found.
--
Regards
Andrey Lepikhov
Postgres Professional