mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Revert "Add USER SET parameter values for pg_db_role_setting"
This reverts commit096dd80f3cand its fixupsbeecbe8e50,afdd9f7f0e,529da086ba,db93e739ac. Catversion is bumped. Discussion: https://postgr.es/m/d46f9265-ff3c-6743-2278-6772598233c2%40pgmasters.net
This commit is contained in:
@@ -166,22 +166,12 @@ ExecSetVariableStmt(VariableSetStmt *stmt, bool isTopLevel)
|
||||
char *
|
||||
ExtractSetVariableArgs(VariableSetStmt *stmt)
|
||||
{
|
||||
|
||||
switch (stmt->kind)
|
||||
{
|
||||
case VAR_SET_VALUE:
|
||||
return flatten_set_variable_args(stmt->name, stmt->args);
|
||||
case VAR_SET_CURRENT:
|
||||
{
|
||||
struct config_generic *record;
|
||||
char *result;
|
||||
|
||||
result = GetConfigOptionByName(stmt->name, NULL, false);
|
||||
record = find_option(stmt->name, false, false, ERROR);
|
||||
stmt->user_set = (record->scontext == PGC_USERSET);
|
||||
|
||||
return result;
|
||||
}
|
||||
return GetConfigOptionByName(stmt->name, NULL, false);
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user