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

Function ExtractSetVariableArgs

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

* Get the value to assign for a VariableSetStmt, or NULL if it's RESET. * The result is palloc'd. * * This is exported for use by actions such as ALTER ROLE SET. */

Source from the content-addressed store, hash-verified

9206 * This is exported for use by actions such as ALTER ROLE SET.
9207 */
9208char *
9209ExtractSetVariableArgs(VariableSetStmt *stmt)
9210{
9211 switch (stmt->kind)
9212 {
9213 case VAR_SET_VALUE:
9214 return flatten_set_variable_args(stmt->name, stmt->args);
9215 case VAR_SET_CURRENT:
9216 return GetConfigOptionByName(stmt->name, NULL, false);
9217 default:
9218 return NULL;
9219 }
9220}
9221
9222/*
9223 * SetPGVariable - SET command exported as an easily-C-callable function.

Callers 4

AlterSystemSetConfigFileFunction · 0.85
ExecSetVariableStmtFunction · 0.85
update_proconfig_valueFunction · 0.85
AlterSettingFunction · 0.85

Calls 2

GetConfigOptionByNameFunction · 0.85

Tested by

no test coverage detected