MCPcopy Create free account
hub / github.com/apache/cloudberry / SetPGVariableOptDispatch

Function SetPGVariableOptDispatch

src/backend/utils/misc/guc.c:9235–9250  ·  view source on GitHub ↗

GPDB: Like SetPGVariable, but with extra 'gp_dispatch' parameter. */

Source from the content-addressed store, hash-verified

9233
9234/* GPDB: Like SetPGVariable, but with extra 'gp_dispatch' parameter. */
9235void
9236SetPGVariableOptDispatch(const char *name, List *args, bool is_local, bool gp_dispatch)
9237{
9238 char *argstring = flatten_set_variable_args(name, args);
9239
9240 /* Note SET DEFAULT (argstring == NULL) is equivalent to RESET */
9241 (void) set_config_option(name,
9242 argstring,
9243 (superuser() ? PGC_SUSET : PGC_USERSET),
9244 PGC_S_SESSION,
9245 is_local ? GUC_ACTION_LOCAL : GUC_ACTION_SET,
9246 true, 0, false);
9247
9248 if (gp_dispatch)
9249 DispatchSetPGVariable(name, args, is_local);
9250}
9251
9252static void
9253DispatchSetPGVariable(const char *name, List *args, bool is_local)

Callers 2

standard_ProcessUtilityFunction · 0.85
SetPGVariableFunction · 0.85

Calls 4

set_config_optionFunction · 0.85
superuserFunction · 0.85
DispatchSetPGVariableFunction · 0.85

Tested by

no test coverage detected