Обсуждение: pgsql: Various fixes around ON CONFLICT for rule deparsing.

Поиск
Список
Период
Сортировка

pgsql: Various fixes around ON CONFLICT for rule deparsing.

От
Andres Freund
Дата:
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/9bc77c45199c7d2e525cd5b1457d5a57f6e9edb0

Modified Files
--------------
src/backend/parser/parse_clause.c             |    2 +-
src/backend/utils/adt/ruleutils.c             |   79 ++++++++++++++++++++++++-
src/test/regress/expected/insert_conflict.out |    2 +-
src/test/regress/expected/rules.out           |   66 +++++++++++++++------
src/test/regress/sql/rules.sql                |   14 ++++-
5 files changed, 140 insertions(+), 23 deletions(-)