diff options
author | Tom Lane | 2019-01-29 20:48:51 +0000 |
---|---|---|
committer | Tom Lane | 2019-01-29 20:48:51 +0000 |
commit | f09346a9c6218dd239fdf3a79a729716c0d305bd (patch) | |
tree | d33b3c1a0770578079e94991384923280991a252 /src/include/optimizer/clauses.h | |
parent | a1b8c41e990ec0f083e9b684700a07640d5a356a (diff) |
Refactor planner's header files.
Create a new header optimizer/optimizer.h, which exposes just the
planner functions that can be used "at arm's length", without need
to access Paths or the other planner-internal data structures defined
in nodes/relation.h. This is intended to provide the whole planner
API seen by most of the rest of the system; although FDWs still need
to use additional stuff, and more thought is also needed about just
what selfuncs.c should rely on.
The main point of doing this now is to limit the amount of new
#include baggage that will be needed by "planner support functions",
which I expect to introduce later, and which will be in relevant
datatype modules rather than anywhere near the planner.
This commit just moves relevant declarations into optimizer.h from
other header files (a couple of which go away because everything
got moved), and adjusts #include lists to match. There's further
cleanup that could be done if we want to decide that some stuff
being exposed by optimizer.h doesn't belong in the planner at all,
but I'll leave that for another day.
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/include/optimizer/clauses.h')
-rw-r--r-- | src/include/optimizer/clauses.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/include/optimizer/clauses.h b/src/include/optimizer/clauses.h index 3f5342886da..cfedd424ced 100644 --- a/src/include/optimizer/clauses.h +++ b/src/include/optimizer/clauses.h @@ -35,9 +35,6 @@ extern double expression_returns_set_rows(Node *clause); extern bool contain_subplans(Node *clause); -extern bool contain_mutable_functions(Node *clause); -extern bool contain_volatile_functions(Node *clause); -extern bool contain_volatile_functions_not_nextval(Node *clause); extern char max_parallel_hazard(Query *parse); extern bool is_parallel_safe(PlannerInfo *root, Node *node); extern bool contain_nonstrict_functions(Node *clause); @@ -56,17 +53,7 @@ extern int NumRelids(Node *clause); extern void CommuteOpExpr(OpExpr *clause); extern void CommuteRowCompareExpr(RowCompareExpr *clause); -extern Node *eval_const_expressions(PlannerInfo *root, Node *node); - -extern Node *estimate_expression_value(PlannerInfo *root, Node *node); - -extern Expr *evaluate_expr(Expr *expr, Oid result_type, int32 result_typmod, - Oid result_collation); - extern Query *inline_set_returning_function(PlannerInfo *root, RangeTblEntry *rte); -extern List *expand_function_arguments(List *args, Oid result_type, - HeapTuple func_tuple); - #endif /* CLAUSES_H */ |