diff --git a/config/read.go b/config/read.go index 166f0ec98..56df99022 100644 --- a/config/read.go +++ b/config/read.go @@ -305,7 +305,7 @@ func getDefaultConfig() *ServerConfig { config.AlwaysCollectSystemData = parseConfigBool(alwaysCollectSystemData) } if disableCitusSchemaStats := os.Getenv("DISABLE_CITUS_SCHEMA_STATS"); disableCitusSchemaStats != "" { - config.DisableCitusSchemaStats = parseConfigDisableCitusSchemaStats(disableCitusSchemaStats) + config.DisableCitusSchemaStats = disableCitusSchemaStats } if logPgReadFile := os.Getenv("LOG_PG_READ_FILE"); logPgReadFile != "" { config.LogPgReadFile = parseConfigBool(logPgReadFile) @@ -705,6 +705,10 @@ func preprocessConfig(config *ServerConfig) (*ServerConfig, error) { } } + if config.DisableCitusSchemaStats != "" { + config.DisableCitusSchemaStats = parseConfigDisableCitusSchemaStats(config.DisableCitusSchemaStats) + } + return config, nil }