Refactor ON CONFLICT index inference parse tree representation.
authorAndres Freund <andres@anarazel.de>
Tue, 19 May 2015 19:17:52 +0000 (21:17 +0200)
committerAndres Freund <andres@anarazel.de>
Tue, 19 May 2015 19:21:27 +0000 (21:21 +0200)
commit0740cbd7593d871858c352fab29a59cf7fa54b00
treec535673374c68e75b4e68cd2ab95ed1d65047a25
parentb48437d11b9389d724c037385a5cae824d4f8049
Refactor ON CONFLICT index inference parse tree representation.

Defer lookup of opfamily and input type of a of a user specified opclass
until the optimizer selects among available unique indexes; and store
the opclass in the parse analyzed tree instead.  The primary reason for
doing this is that for rule deparsing it's easier to use the opclass
than the previous representation.

While at it also rename a variable in the inference code to better fit
it's purpose.

This is separate from the actual fixes for deparsing to make review
easier.
contrib/pg_stat_statements/pg_stat_statements.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/nodes/outfuncs.c
src/backend/nodes/readfuncs.c
src/backend/optimizer/util/plancat.c
src/backend/parser/parse_clause.c
src/include/nodes/primnodes.h