Improve parse representation for MERGE
Simon Riggs <simon@2ndQuadrant.com>
Improve parse representation for MERGE Separation of parser data structures from executor, as requested by Tom Lane. Further improvements possible. While there, implement error for multiple VALUES clauses via parser to allow line number of error, as requested by Andres Freund. Author: Pavan Deolasee Discussion: https://www.postgresql.org/message-id/CABOikdPpqjectFchg0FyTOpsGXyPoqwgC==OLKWuxgBOsrDDZw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/nodes/copyfuncs.c | modified | +26 −9 |
| src/backend/nodes/equalfuncs.c | modified | +22 −6 |
| src/backend/nodes/nodeFuncs.c | modified | +9 −5 |
| src/backend/nodes/outfuncs.c | modified | +21 −6 |
| src/backend/nodes/readfuncs.c | modified | +27 −8 |
| src/backend/parser/gram.y | modified | +42 −50 |
| src/backend/parser/parse_merge.c | modified | +33 −53 |
| src/backend/rewrite/rewriteHandler.c | modified | +1 −3 |
| src/include/nodes/nodes.h | modified | +2 −1 |
| src/include/nodes/parsenodes.h | modified | +21 −6 |
| src/test/regress/expected/merge.out | modified | +3 −1 |
Discussion
- Add support for printing/reading MergeAction nodes 12 messages · 2018-04-04 → 2018-04-06