Various fixes around ON CONFLICT for rule deparsing.
Andres Freund <andres@anarazel.de>
Various fixes around ON CONFLICT for rule deparsing. Neither the deparsing of the new alias for INSERT's target table, nor of the inference clause was supported. Also fixup a typo in an error message. Add regression tests to test those code paths. Author: Peter Geoghegan
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/parse_clause.c | modified | +1 −1 |
| src/backend/utils/adt/ruleutils.c | modified | +77 −2 |
| src/test/regress/expected/insert_conflict.out | modified | +1 −1 |
| src/test/regress/expected/rules.out | modified | +49 −17 |
| src/test/regress/sql/rules.sql | modified | +12 −2 |