@@ -62,12 +62,12 @@ allow_star_schema_join(PlannerInfo *root,
6262}
6363
6464
65- set_join_pathlist_hook_type set_join_pathlist_next = NULL ;
66- set_rel_pathlist_hook_type set_rel_pathlist_hook_next = NULL ;
67- planner_hook_type planner_hook_next = NULL ;
68- post_parse_analyze_hook_type post_parse_analyze_hook_next = NULL ;
69- shmem_startup_hook_type shmem_startup_hook_next = NULL ;
70- ProcessUtility_hook_type process_utility_hook_next = NULL ;
65+ set_join_pathlist_hook_type pathman_set_join_pathlist_next = NULL ;
66+ set_rel_pathlist_hook_type pathman_set_rel_pathlist_hook_next = NULL ;
67+ planner_hook_type pathman_planner_hook_next = NULL ;
68+ post_parse_analyze_hook_type pathman_post_parse_analyze_hook_next = NULL ;
69+ shmem_startup_hook_type pathman_shmem_startup_hook_next = NULL ;
70+ ProcessUtility_hook_type pathman_process_utility_hook_next = NULL ;
7171
7272
7373/* Take care of joins */
@@ -91,9 +91,9 @@ pathman_join_pathlist_hook(PlannerInfo *root,
9191ListCell * lc ;
9292
9393/* Call hooks set by other extensions */
94- if (set_join_pathlist_next )
95- set_join_pathlist_next (root ,joinrel ,outerrel ,
96- innerrel ,jointype ,extra );
94+ if (pathman_set_join_pathlist_next )
95+ pathman_set_join_pathlist_next (root ,joinrel ,outerrel ,
96+ innerrel ,jointype ,extra );
9797
9898/* Check that both pg_pathman & RuntimeAppend nodes are enabled */
9999if (!IsPathmanReady ()|| !pg_pathman_enable_runtimeappend )
@@ -312,8 +312,8 @@ pathman_rel_pathlist_hook(PlannerInfo *root,
312312int irange_len ;
313313
314314/* Invoke original hook if needed */
315- if (set_rel_pathlist_hook_next != NULL )
316- set_rel_pathlist_hook_next (root ,rel ,rti ,rte );
315+ if (pathman_set_rel_pathlist_hook_next )
316+ pathman_set_rel_pathlist_hook_next (root ,rel ,rti ,rte );
317317
318318/* Make sure that pg_pathman is ready */
319319if (!IsPathmanReady ())
@@ -631,8 +631,8 @@ pathman_planner_hook(Query *parse, int cursorOptions, ParamListInfo boundParams)
631631}
632632
633633/* Invoke original hook if needed */
634- if (planner_hook_next )
635- result = planner_hook_next (parse ,cursorOptions ,boundParams );
634+ if (pathman_planner_hook_next )
635+ result = pathman_planner_hook_next (parse ,cursorOptions ,boundParams );
636636else
637637result = standard_planner (parse ,cursorOptions ,boundParams );
638638
@@ -671,11 +671,11 @@ pathman_planner_hook(Query *parse, int cursorOptions, ParamListInfo boundParams)
671671 * any statement, including utility commands
672672 */
673673void
674- pathman_post_parse_analysis_hook (ParseState * pstate ,Query * query )
674+ pathman_post_parse_analyze_hook (ParseState * pstate ,Query * query )
675675{
676676/* Invoke original hook if needed */
677- if (post_parse_analyze_hook_next )
678- post_parse_analyze_hook_next (pstate ,query );
677+ if (pathman_post_parse_analyze_hook_next )
678+ pathman_post_parse_analyze_hook_next (pstate ,query );
679679
680680/* See cook_partitioning_expression() */
681681if (!pathman_hooks_enabled )
@@ -735,7 +735,7 @@ pathman_post_parse_analysis_hook(ParseState *pstate, Query *query)
735735if (IsPathmanReady ()&& get_planner_calls_count ()> 0 )
736736{
737737/* Check that pg_pathman is the last extension loaded */
738- if (post_parse_analyze_hook != pathman_post_parse_analysis_hook )
738+ if (post_parse_analyze_hook != pathman_post_parse_analyze_hook )
739739{
740740Oid save_userid ;
741741int save_sec_context ;
786786pathman_shmem_startup_hook (void )
787787{
788788/* Invoke original hook if needed */
789- if (shmem_startup_hook_next != NULL )
790- shmem_startup_hook_next ();
789+ if (pathman_shmem_startup_hook_next )
790+ pathman_shmem_startup_hook_next ();
791791
792792/* Allocate shared memory objects */
793793LWLockAcquire (AddinShmemInitLock ,LW_EXCLUSIVE );
@@ -942,8 +942,8 @@ pathman_process_utility_hook(Node *first_arg,
942942}
943943
944944/* Finally call process_utility_hook_next or standard_ProcessUtility */
945- call_process_utility_compat ((process_utility_hook_next ?
946- process_utility_hook_next :
945+ call_process_utility_compat ((pathman_process_utility_hook_next ?
946+ pathman_process_utility_hook_next :
947947standard_ProcessUtility ),
948948first_arg ,queryString ,
949949context ,params ,queryEnv ,