mirror of
https://github.com/postgres/postgres.git
synced 2025-10-19 15:49:24 +03:00
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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user