]> granicus.if.org Git - postgresql/commit
Various fixes around ON CONFLICT for rule deparsing.
authorAndres Freund <andres@anarazel.de>
Tue, 19 May 2015 19:07:28 +0000 (21:07 +0200)
committerAndres Freund <andres@anarazel.de>
Tue, 19 May 2015 21:18:57 +0000 (23:18 +0200)
commit9bc77c45199c7d2e525cd5b1457d5a57f6e9edb0
tree06b8809dd701d4e82663ddb025ad0fb28813a6e0
parent0740cbd7593d871858c352fab29a59cf7fa54b00
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
src/backend/parser/parse_clause.c
src/backend/utils/adt/ruleutils.c
src/test/regress/expected/insert_conflict.out
src/test/regress/expected/rules.out
src/test/regress/sql/rules.sql