postgresql/src/backend
Tom Lane adaf34241a Improve ruleutils' printout of LATERAL references within subplans.
Commit 1cc29fe7c, which taught EXPLAIN to print PARAM_EXEC Params as
the referenced expressions, included some checks to prevent matching
Params found in SubPlans or InitPlans to NestLoopParams of upper query
levels.  At the time, this seemed possibly necessary to avoid false
matches because of the planner's habit of re-using the same PARAM_EXEC
slot in multiple places in a plan.  Furthermore, in the absence of
LATERAL no such reference could be valid anyway.  But it's possible
now that we have LATERAL, and in the wake of 46c508fbc and 1db5667ba
I believe the false-match hazard is gone.  Hence, remove the
in_same_plan_level checks.  As shown in the regression test changes,
this provides a useful improvement in readability for EXPLAIN of
LATERAL-using subplans.

Richard Guo, reviewed by Greg Stark and myself

Discussion: https://postgr.es/m/CAMbWs4-YSOcQXAagJetP95cAeZPqzOy5kM5yijG0PVW5ztRb4w@mail.gmail.com
2022-11-16 20:06:09 -05:00
..
access Variable renaming in preparation for refactoring 2022-11-16 16:40:34 +01:00
backup Rename shadowed local variables 2022-10-05 21:01:41 +13:00
bootstrap Remove AssertArg and AssertState 2022-10-28 09:19:06 +02:00
catalog Use multi-inserts for pg_enum 2022-11-16 12:41:29 +09:00
commands Use multi-inserts for pg_ts_config_map 2022-11-16 14:32:09 +09:00
executor Refactor aclcheck functions 2022-11-13 09:02:41 +01:00
foreign Rename SetSingleFuncCall() to InitMaterializedSRF() 2022-10-18 10:22:35 +09:00
jit Remove AssertArg and AssertState 2022-10-28 09:19:06 +02:00
lib Add doubly linked count list implementation 2022-11-02 14:06:05 +13:00
libpq Add error context callback when tokenizing authentication files 2022-11-14 11:58:10 +09:00
main meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
nodes Invent "multibitmapsets", and use them to speed up antijoin detection. 2022-11-16 13:58:44 -05:00
optimizer Invent "multibitmapsets", and use them to speed up antijoin detection. 2022-11-16 13:58:44 -05:00
parser Refactor aclcheck functions 2022-11-13 09:02:41 +01:00
partitioning Resolve partition strategy during early parsing 2022-11-03 16:25:54 +01:00
po meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
port Provide sigaction() for Windows. 2022-11-09 13:06:31 +13:00
postmaster Disallow setting archive_library and archive_command at the same time 2022-11-15 10:03:47 +01:00
regex Remove uses of register due to incompatibility with C++17 and up 2022-09-24 12:08:37 -07:00
replication Fix slowdown in TAP tests due to recent walreceiver change. 2022-11-17 11:30:14 +13:00
rewrite Refactor ownercheck functions 2022-11-13 08:12:37 +01:00
snowball meson: Add support for building with precompiled headers 2022-10-06 17:19:30 -07:00
statistics Rename shadowed local variables 2022-10-05 21:01:41 +13:00
storage Improve comments referring snapshot's subxip array. 2022-11-15 09:37:19 +05:30
tcop Refactor aclcheck functions 2022-11-13 09:02:41 +01:00
tsearch Introduce t_isalnum() to replace t_isalpha() || t_isdigit() tests. 2022-10-06 11:08:56 -04:00
utils Improve ruleutils' printout of LATERAL references within subplans. 2022-11-16 20:06:09 -05:00
.gitignore
Makefile Move gramparse.h to src/backend/parser 2022-09-14 10:57:13 +07:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
meson.build meson: Add support for building with precompiled headers 2022-10-06 17:19:30 -07:00
nls.mk NLS: Put list of available languages into LINGUAS files 2022-07-13 08:19:17 +02:00