pgsql: Refactor ON CONFLICT index inference parse tree representation. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Refactor ON CONFLICT index inference parse tree representation.
Date
Msg-id E1YuowZ-0002Nf-U3@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Refactor ON CONFLICT index inference parse tree representation.
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0740cbd7593d871858c352fab29a59cf7fa54b00

Modified Files
--------------
contrib/pg_stat_statements/pg_stat_statements.c |    3 +-
src/backend/nodes/copyfuncs.c                   |    3 +-
src/backend/nodes/equalfuncs.c                  |    3 +-
src/backend/nodes/outfuncs.c                    |    3 +-
src/backend/nodes/readfuncs.c                   |    3 +-
src/backend/optimizer/util/plancat.c            |   34 +++++++++++++++--------
src/backend/parser/parse_clause.c               |   14 ++--------
src/include/nodes/primnodes.h                   |    3 +-
8 files changed, 31 insertions(+), 35 deletions(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Various fixes around ON CONFLICT for rule deparsing.
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Refactor ON CONFLICT index inference parse tree representation.