diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/nodes/relation.h | 2 | ||||
-rw-r--r-- | src/include/optimizer/planmain.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/include/nodes/relation.h b/src/include/nodes/relation.h index 4f061e91a3e..ea04809099d 100644 --- a/src/include/nodes/relation.h +++ b/src/include/nodes/relation.h @@ -205,7 +205,7 @@ typedef struct PlannerInfo List *placeholder_list; /* list of PlaceHolderInfos */ List *query_pathkeys; /* desired pathkeys for query_planner(), and - * actual pathkeys afterwards */ + * actual pathkeys after planning */ List *group_pathkeys; /* groupClause pathkeys, if any */ List *window_pathkeys; /* pathkeys of bottom window, if any */ diff --git a/src/include/optimizer/planmain.h b/src/include/optimizer/planmain.h index 3f77963664a..ece10ed7f41 100644 --- a/src/include/optimizer/planmain.h +++ b/src/include/optimizer/planmain.h @@ -21,11 +21,15 @@ #define DEFAULT_CURSOR_TUPLE_FRACTION 0.1 extern double cursor_tuple_fraction; +/* query_planner callback to compute query_pathkeys */ +typedef void (*query_pathkeys_callback) (PlannerInfo *root, void *extra); + /* * prototypes for plan/planmain.c */ extern void query_planner(PlannerInfo *root, List *tlist, double tuple_fraction, double limit_tuples, + query_pathkeys_callback qp_callback, void *qp_extra, Path **cheapest_path, Path **sorted_path, double *num_groups); |