postgresql/src/test/regress
Dean Rasheed a7d71c41db Fix mishandling of OLD/NEW references in subqueries in rule actions.
If a rule action contains a subquery that refers to columns from OLD
or NEW, then those are really lateral references, and the planner will
complain if it sees such things in a subquery that isn't marked as
lateral. However, at rule-definition time, the user isn't required to
mark the subquery with LATERAL, and so it can fail when the rule is
used.

Fix this by marking such subqueries as lateral in the rewriter, at the
point where they're used.

Dean Rasheed and Tom Lane, per report from Alexander Lakhin.
Back-patch to all supported branches.

Discussion: https://postgr.es/m/5e09da43-aaba-7ea7-0a51-a2eb981b058b%40gmail.com
2023-02-25 14:41:12 +00:00
..
data Fix full text search to handle NOT above a phrase search correctly. 2020-04-27 12:21:04 -04:00
expected Fix mishandling of OLD/NEW references in subqueries in rule actions. 2023-02-25 14:41:12 +00:00
sql Fix mishandling of OLD/NEW references in subqueries in rule actions. 2023-02-25 14:41:12 +00:00
.gitignore Fix inconsistencies and typos in the tree, take 10 2019-08-13 13:53:41 +09:00
GNUmakefile Update copyright for 2023 2023-01-02 15:00:37 -05:00
Makefile Fix non-GNU makefiles for AIX make. 2017-11-30 00:57:22 -08:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
parallel_schedule Create regress_tblspc in test_setup 2023-02-11 10:03:04 -08:00
pg_regress_main.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_regress.c Consider a failed process as a failed test in pg_regress 2023-02-23 09:25:47 +01:00
pg_regress.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
README Don't generate plain-text HISTORY and src/test/regress/README anymore. 2014-02-10 20:48:04 -05:00
regress.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
regressplans.sh Fix inconsistencies in the code 2019-07-08 13:15:09 +09:00
resultmap Remove HP-UX port. 2022-07-08 14:05:05 +12:00

Documentation concerning how to run these regression tests and interpret
the results can be found in the PostgreSQL manual, in the chapter
"Regression Tests".