guc vars 3057465acfbea2f3dd7a914a1478064022c6eecd

pg16_kickoff
onderkalaci 2023-04-26 20:29:15 +03:00
parent 036a96ce68
commit ecbf368dc0
2 changed files with 5 additions and 5 deletions

View File

@ -703,12 +703,12 @@ MakeSetStatementArguments(char *configurationName, char *configurationValue)
* is no other way to determine allowed units, and value types other than * is no other way to determine allowed units, and value types other than
* using this function * using this function
*/ */
struct config_generic **gucVariables = get_guc_variables(); int gucCount;
int numOpts = GetNumConfigOptions(); struct config_generic **gucVariables = get_guc_variables(&gucCount);
struct config_generic **matchingConfig = struct config_generic **matchingConfig =
(struct config_generic **) SafeBsearch((void *) &key, (struct config_generic **) SafeBsearch((void *) &key,
(void *) gucVariables, (void *) gucVariables,
numOpts, gucCount,
sizeof(struct config_generic *), sizeof(struct config_generic *),
ConfigGenericNameCompare); ConfigGenericNameCompare);

View File

@ -2567,8 +2567,8 @@ RegisterCitusConfigVariables(void)
static void static void
OverridePostgresConfigAssignHooks(void) OverridePostgresConfigAssignHooks(void)
{ {
struct config_generic **guc_vars = get_guc_variables(); int gucCount;
int gucCount = GetNumConfigOptions(); struct config_generic **guc_vars = get_guc_variables(&gucCount);
for (int gucIndex = 0; gucIndex < gucCount; gucIndex++) for (int gucIndex = 0; gucIndex < gucCount; gucIndex++)
{ {