Review changes

pg16_grant_inherit_set
Jodi-Ann Francis 2023-08-30 15:09:59 -04:00 committed by francisjodi
parent 7a205f2dd2
commit 816fb85333
2 changed files with 10 additions and 13 deletions

View File

@ -408,21 +408,19 @@ AppendRevokeAdminOptionFor(StringInfo buf, GrantRoleStmt *stmt)
switch (opt->defname)
{
case "admin":
appendStringInfo(buf, "ADMIN OPTION FOR ");
break;
case "inherit":
appendStringInfo(buf, "INHERIT OPTION FOR ");
break;
case "set":
appendStringInfo(buf, "SET OPTION FOR ");
break;
appendStringInfo(buf, "ADMIN OPTION FOR ");
}
else if (strcmp(opt->defname, "inherit") == 0);
{
appendStringInfo(buf, "INHERIT TRUE");
appendStringInfo(buf, "GRANT x TO y WITH INHERIT TRUE, SET TRUE;");
}
else if (strcmp(opt->defname, "set") == 0)
{
appendStringInfo(buf, "SET TRUE");
}
}
}
}
#else
if (!stmt->is_grant && stmt->admin_opt)
{

View File

@ -658,4 +658,3 @@ DROP ROLE role3, role4, role5;
SET client_min_messages TO ERROR;
DROP EXTENSION postgres_fdw CASCADE;
DROP SCHEMA pg16 CASCADE;