Allow OLD and NEW in multi-row VALUES within rules.
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/path/allpaths.c | modified | +1 −3 |
| src/backend/parser/analyze.c | modified | +19 −27 |
| src/backend/parser/parse_relation.c | modified | +2 −1 |
| src/backend/utils/adt/ruleutils.c | modified | +42 −15 |
| src/include/nodes/parsenodes.h | modified | +1 −1 |
| src/include/parser/parse_relation.h | modified | +1 −0 |
| src/test/regress/expected/rules.out | modified | +78 −0 |
| src/test/regress/sql/rules.sql | modified | +20 −0 |