aboutsummaryrefslogtreecommitdiff
path: root/src/include/nodes/nodeFuncs.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-07-23 18:21:19 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2013-07-23 18:21:19 -0400
commit10a509d82956dee14eb2011bd266cd3c728ae188 (patch)
treec806c2fcb115030a5c025a11a3dbf0aeefebecf2 /src/include/nodes/nodeFuncs.h
parentef655663c5069231e054c3514c3ee9b15b8a4f13 (diff)
downloadpostgresql-10a509d82956dee14eb2011bd266cd3c728ae188.tar.gz
postgresql-10a509d82956dee14eb2011bd266cd3c728ae188.zip
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.
Diffstat (limited to 'src/include/nodes/nodeFuncs.h')
-rw-r--r--src/include/nodes/nodeFuncs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/nodes/nodeFuncs.h b/src/include/nodes/nodeFuncs.h
index d4901caefa6..fe7cfd38807 100644
--- a/src/include/nodes/nodeFuncs.h
+++ b/src/include/nodes/nodeFuncs.h
@@ -30,6 +30,7 @@ extern Oid exprType(const Node *expr);
extern int32 exprTypmod(const Node *expr);
extern bool exprIsLengthCoercion(const Node *expr, int32 *coercedTypmod);
extern Node *relabel_to_typmod(Node *expr, int32 typmod);
+extern Node *strip_implicit_coercions(Node *node);
extern bool expression_returns_set(Node *clause);
extern Oid exprCollation(const Node *expr);