Fix deparsing of ON CONFLICT arbiter WHERE clauses.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 82406d6ff1aa9f2e77536d91492a2d2b7e20b5c7
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-02-07T19:57:24Z
Releases: 9.5.1
Fix deparsing of ON CONFLICT arbiter WHERE clauses.

The parser doesn't allow qualification of column names appearing in
these clauses, but ruleutils.c would sometimes qualify them, leading
to dump/reload failures.  Per bug #13891 from Onder Kalaci.

(In passing, make stanzas in ruleutils.c that save/restore varprefix
more consistent.)

Peter Geoghegan

Files

PathChange+/−
src/backend/utils/adt/ruleutils.c modified +16 −3
src/test/regress/expected/rules.out modified +2 −2