Re: wrong query result due to wang plan
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Guo <guofenglinux@gmail.com>
Cc: tender wang <tndrwang@gmail.com>, pgsql-hackers@postgresql.org
Date: 2023-02-22T17:41:52Z
Lists: pgsql-hackers
Richard Guo <guofenglinux@gmail.com> writes: > I'm thinking that maybe we can do the strip-the-outer-joins work only > when it's not the top JoinDomain. When we are in the top JoinDomain, it > seems to me that it's safe to push the qual to the top of the tree. Yeah, because there's nothing to commute with. Might as well do that for consistency with the distribute_qual_to_rels behavior, although I felt it was better to put it inside get_join_domain_min_rels. Pushed, thanks for the report! regards, tom lane
Commits
-
Fix some issues with wrong placement of pseudo-constant quals.
- a75ff55c8334 16.0 landed