@@ -62,12 +62,12 @@ allow_star_schema_join(PlannerInfo *root,
62
62
}
63
63
64
64
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 ;
71
71
72
72
73
73
/* Take care of joins */
@@ -91,9 +91,9 @@ pathman_join_pathlist_hook(PlannerInfo *root,
91
91
ListCell * lc ;
92
92
93
93
/* 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 );
97
97
98
98
/* Check that both pg_pathman & RuntimeAppend nodes are enabled */
99
99
if (!IsPathmanReady () || !pg_pathman_enable_runtimeappend )
@@ -312,8 +312,8 @@ pathman_rel_pathlist_hook(PlannerInfo *root,
312
312
int irange_len ;
313
313
314
314
/* 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 );
317
317
318
318
/* Make sure that pg_pathman is ready */
319
319
if (!IsPathmanReady ())
@@ -631,8 +631,8 @@ pathman_planner_hook(Query *parse, int cursorOptions, ParamListInfo boundParams)
631
631
}
632
632
633
633
/* 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 );
636
636
else
637
637
result = standard_planner (parse , cursorOptions , boundParams );
638
638
@@ -671,11 +671,11 @@ pathman_planner_hook(Query *parse, int cursorOptions, ParamListInfo boundParams)
671
671
* any statement, including utility commands
672
672
*/
673
673
void
674
- pathman_post_parse_analysis_hook (ParseState * pstate , Query * query )
674
+ pathman_post_parse_analyze_hook (ParseState * pstate , Query * query )
675
675
{
676
676
/* 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 );
679
679
680
680
/* See cook_partitioning_expression() */
681
681
if (!pathman_hooks_enabled )
@@ -735,7 +735,7 @@ pathman_post_parse_analysis_hook(ParseState *pstate, Query *query)
735
735
if (IsPathmanReady () && get_planner_calls_count () > 0 )
736
736
{
737
737
/* 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 )
739
739
{
740
740
Oid save_userid ;
741
741
int save_sec_context ;
786
786
pathman_shmem_startup_hook (void )
787
787
{
788
788
/* 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 ();
791
791
792
792
/* Allocate shared memory objects */
793
793
LWLockAcquire (AddinShmemInitLock , LW_EXCLUSIVE );
@@ -942,8 +942,8 @@ pathman_process_utility_hook(Node *first_arg,
942
942
}
943
943
944
944
/* 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 :
947
947
standard_ProcessUtility ),
948
948
first_arg , queryString ,
949
949
context , params , queryEnv ,
0 commit comments