diff --git a/src/backend/distributed/shared_library_init.c b/src/backend/distributed/shared_library_init.c index e84aa282a..1f4cee037 100644 --- a/src/backend/distributed/shared_library_init.c +++ b/src/backend/distributed/shared_library_init.c @@ -1451,7 +1451,7 @@ RegisterCitusConfigVariables(void) "and operating system name. This configuration value controls " "whether these reports are sent."), &EnableStatisticsCollection, -#if defined(HAVE_LIBCURL) +#if defined(HAVE_LIBCURL) && defined(ENABLE_CITUS_STATISTICS_COLLECTION) true, #else false, diff --git a/src/backend/distributed/utils/statistics_collection.c b/src/backend/distributed/utils/statistics_collection.c index 3783414e6..a442aac95 100644 --- a/src/backend/distributed/utils/statistics_collection.c +++ b/src/backend/distributed/utils/statistics_collection.c @@ -14,7 +14,11 @@ #include "fmgr.h" #include "utils/uuid.h" +#if defined(HAVE_LIBCURL) && defined(ENABLE_CITUS_STATISTICS_COLLECTION) bool EnableStatisticsCollection = true; /* send basic usage statistics to Citus */ +#else +bool EnableStatisticsCollection = false; +#endif PG_FUNCTION_INFO_V1(citus_server_id);