Re: BUG #18187: Unexpected error: "variable not found in subplan target lists" triggered by JOIN
Alexander Korotkov <aekorotkov@gmail.com>
From: Alexander Korotkov <aekorotkov@gmail.com>
To: Richard Guo <guofenglinux@gmail.com>
Cc: Andrei Lepikhov <a.lepikhov@postgrespro.ru>, Tom Lane <tgl@sss.pgh.pa.us>, zuming.jiang@inf.ethz.ch, pgsql-bugs@lists.postgresql.org, PG Bug reporting form <noreply@postgresql.org>
Date: 2023-12-24T23:37:50Z
Lists: pgsql-bugs
On Sat, Dec 23, 2023 at 1:27 AM Alexander Korotkov <aekorotkov@gmail.com> wrote: > On Tue, Dec 12, 2023 at 8:41 AM Richard Guo <guofenglinux@gmail.com> wrote: > > On Thu, Dec 7, 2023 at 10:55 AM Andrei Lepikhov <a.lepikhov@postgrespro.ru> wrote: > >> According to the patches: > >> 0001 - looks good for me. > >> 0002 - I don't understand why to use 'explain' in VERBOSE mode in tests. > >> What do you try to detect here? > > > > The VERBOSE mode is used to observe that PHVs are adjusted correctly and > > put in the right targetlist. > > > >> 0003 - ok, but too short. Maybe squash all these patches into one? > > > > It seems to me that these three patches are addressing separate issues > > and are independent of each other. For instance, the issue addressed by > > 0001 exists on master even without other changes, and 0002 is an > > improvement that does not depend on others, while 0003 is a fix of an > > incorrect comment. I don't think it's a good idea to squash them into > > one. > > > >> I think these corrections are good enough for commit. > > > > Thank you for reviewing these patches. Alexander, what are your > > thoughts on these patches? > > Looks good to me. I'm going to push this if there are no objections. Pushed! Thanks to all the participants. ------ Regards, Alexander Korotkov
Commits
-
Fix a comment for remove_self_joins_recurse()
- 0a93f803f45f 17.0 landed
-
Don't constrain self-join removal due to PHVs
- b5fb6736ed3b 17.0 landed
-
Handle PlaceHolderVar case in replace_varno_walker
- 8a8ed916f73f 17.0 landed
-
Fix how SJE checks against PHVs
- b7f315c9d7d8 17.0 landed
-
citext: Allow tests to pass in OpenSSL FIPS mode
- 3c551ebede46 17.0 cited