GPDB: Like SetPGVariable, but with extra 'gp_dispatch' parameter. */
| 9233 | |
| 9234 | /* GPDB: Like SetPGVariable, but with extra 'gp_dispatch' parameter. */ |
| 9235 | void |
| 9236 | SetPGVariableOptDispatch(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 | |
| 9252 | static void |
| 9253 | DispatchSetPGVariable(const char *name, List *args, bool is_local) |
no test coverage detected