diff --git a/src/backend/utils/init/miscinit.c b/src/backend/utils/init/miscinit.c index df02d202663..23b97230f87 100644 --- a/src/backend/utils/init/miscinit.c +++ b/src/backend/utils/init/miscinit.c @@ -1891,7 +1891,7 @@ process_shared_preload_libraries(void) { process_shared_preload_libraries_in_progress = true; - char* libraries = expand_shared_preload_libraries_string(); + char *libraries = expand_shared_preload_libraries_string(); load_libraries(libraries, "shared_preload_libraries", false); @@ -1900,12 +1900,6 @@ process_shared_preload_libraries(void) pfree(libraries); } -#ifdef ENABLE_PRELOAD_IC_MODULE - load_libraries("interconnect", - "preload interconnect module", - false); -#endif - process_shared_preload_libraries_in_progress = false; process_shared_preload_libraries_done = true; } diff --git a/src/include/utils/process_shared_preload_libraries.h b/src/include/utils/process_shared_preload_libraries.h index e69de29bb2d..aa216179d81 100644 --- a/src/include/utils/process_shared_preload_libraries.h +++ b/src/include/utils/process_shared_preload_libraries.h @@ -0,0 +1,3 @@ +#ifdef ENABLE_PRELOAD_IC_MODULE + "interconnect", +#endif