remove experiment

moonshot/custom-path
Nils Dijk 2022-02-11 14:23:56 +01:00
parent 51b65d7dec
commit cc6932fa31
No known key found for this signature in database
GPG Key ID: CA1177EF9434F241
3 changed files with 0 additions and 19 deletions

View File

@ -2639,17 +2639,3 @@ PathBasedPlannerComparePath(Path *new_path, Path *old_path)
return PATH_EQUAL;
}
add_path_merit_list_hook_type prev_add_path_merit_list_hook = NULL;
List *
PathBasedMeritListHook(Path *path)
{
List *merits = NIL;
if (prev_add_path_merit_list_hook)
{
merits = prev_add_path_merit_list_hook(path);
}
List *colocationIds = ColocationGroupsForPathList(path);
return lappend(merits, colocationIds);
}

View File

@ -300,8 +300,6 @@ _PG_init(void)
set_join_pathlist_hook = multi_join_restriction_hook;
create_upper_paths_hook = PathBasedPlannedUpperPathHook;
compare_path_hook = PathBasedPlannerComparePath;
prev_add_path_merit_list_hook = add_path_merit_list_hook;
add_path_merit_list_hook = PathBasedMeritListHook;
ExecutorStart_hook = CitusExecutorStart;
ExecutorRun_hook = CitusExecutorRun;

View File

@ -48,8 +48,5 @@ extern void PathBasedPlannedUpperPathHook(PlannerInfo *root,
void *extra);
extern PathComparison PathBasedPlannerComparePath(Path *new_path, Path *old_path);
extern List * PathBasedMeritListHook(Path *path);
extern add_path_merit_list_hook_type prev_add_path_merit_list_hook;
#endif //CITUS_PATH_BASED_PLANNER_H