pgsql: Move strip_implicit_coercions() from optimizer to nodeFuncs.c.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Move strip_implicit_coercions() from optimizer to nodeFuncs.c.
Date: 2013-07-23 22:21:35
Message-ID: E1V1kxb-0006mj-2L@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Move strip_implicit_coercions() from optimizer to nodeFuncs.c.

Use of this function has spread into the parser and rewriter, so it seems
like time to pull it out of the optimizer and put it into the more central
nodeFuncs module. This eliminates the need to #include optimizer/clauses.h
in most of the calling files, demonstrating that this function was indeed a
bit outside the normal code reference patterns.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/10a509d82956dee14eb2011bd266cd3c728ae188

Modified Files
--------------
src/backend/nodes/nodeFuncs.c | 59 ++++++++++++++++++++++++++++++++++
src/backend/optimizer/util/clauses.c | 56 --------------------------------
src/backend/parser/parse_clause.c | 1 -
src/backend/parser/parse_relation.c | 1 -
src/backend/rewrite/rewriteHandler.c | 1 -
src/backend/utils/adt/ruleutils.c | 1 -
src/include/nodes/nodeFuncs.h | 1 +
src/include/optimizer/clauses.h | 2 --
8 files changed, 60 insertions(+), 62 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2013-07-24 04:45:45 pgsql: Fix booltestsel() for case where we have NULL stats but not MCV
Previous Message Tom Lane 2013-07-23 21:56:21 pgsql: Further hacking on ruleutils' new column-alias-assignment code.