postgresql/src/backend/optimizer/prep
Tom Lane 3908d6ae11 Support PlaceHolderVars in MERGE actions.
preprocess_targetlist thought PHVs couldn't appear here.
It was mistaken, as per report from Önder Kalacı.

Surveying other pull_var_clause calls, I noted no similar errors,
but I did notice that qual_is_pushdown_safe's assertion about
!contain_window_function was pointless, because the following
pull_var_clause call would complain about them anyway.  In HEAD
only, remove the redundant Assert and improve the commentary.

Discussion: https://postgr.es/m/CACawEhUuum-gC_2S3sXLTcsk7bUSPSHOD+g1ZpfKaDK-KKPPWA@mail.gmail.com
2023-03-15 11:59:18 -04:00
..
Makefile Move per-agg and per-trans duplicate finding to the planner. 2020-11-24 10:45:00 +02:00
prepagg.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
prepjointree.c Add some recursion and looping defenses in prepjointree.c. 2022-12-22 10:35:02 -05:00
prepqual.c Update copyright for 2022 2022-01-07 19:04:57 -05:00
preptlist.c Support PlaceHolderVars in MERGE actions. 2023-03-15 11:59:18 -04:00
prepunion.c Update copyright for 2022 2022-01-07 19:04:57 -05:00