mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Allow OLD and NEW in multi-row VALUES within rules.
Now that we have LATERAL, it's fairly painless to allow this case, which was left as a TODO in the original multi-row VALUES implementation.
This commit is contained in:
@ -1221,9 +1221,7 @@ set_values_pathlist(PlannerInfo *root, RelOptInfo *rel, RangeTblEntry *rte)
|
||||
|
||||
/*
|
||||
* If it's a LATERAL RTE, it might contain some Vars of the current query
|
||||
* level, requiring it to be treated as parameterized. (NB: even though
|
||||
* the parser never marks VALUES RTEs as LATERAL, they could be so marked
|
||||
* by now, as a result of subquery pullup.)
|
||||
* level, requiring it to be treated as parameterized.
|
||||
*/
|
||||
if (rte->lateral)
|
||||
{
|
||||
|
Reference in New Issue
Block a user