Various fixes around ON CONFLICT for rule deparsing.

Andres Freund <andres@anarazel.de>

Commit: 9bc77c45199c7d2e525cd5b1457d5a57f6e9edb0
Author: Andres Freund <andres@anarazel.de>
Date: 2015-05-19T21:18:57Z
Releases: 9.5.0
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