Not implemented, see PG commit e3ce2de09d814f8770b2e3b3c152b7671bcdb83f

pg16_kickoff
onderkalaci 2023-04-26 21:42:11 +03:00
parent 45259d2b87
commit 3a773ee18f
2 changed files with 5 additions and 7 deletions

View File

@ -820,7 +820,7 @@ GenerateGrantRoleStmtsFromOptions(RoleSpec *roleSpec, List *options)
if (strcmp(option->defname, "adminmembers") == 0) if (strcmp(option->defname, "adminmembers") == 0)
{ {
grantRoleStmt->admin_opt = true; /* TODO: PG commit */
} }
stmts = lappend(stmts, grantRoleStmt); stmts = lappend(stmts, grantRoleStmt);
@ -868,8 +868,6 @@ GenerateGrantRoleStmtsOfRole(Oid roleid)
grantRoleStmt->grantor = NULL; grantRoleStmt->grantor = NULL;
grantRoleStmt->admin_opt = membership->admin_option;
stmts = lappend(stmts, grantRoleStmt); stmts = lappend(stmts, grantRoleStmt);
} }

View File

@ -349,9 +349,9 @@ AppendGrantRoleStmt(StringInfo buf, GrantRoleStmt *stmt)
{ {
appendStringInfo(buf, "%s ", stmt->is_grant ? "GRANT" : "REVOKE"); appendStringInfo(buf, "%s ", stmt->is_grant ? "GRANT" : "REVOKE");
if (!stmt->is_grant && stmt->admin_opt) if (!stmt->is_grant && false)
{ {
appendStringInfo(buf, "ADMIN OPTION FOR "); /* TODO PG commit: e3ce2de09d814f8770b2e3b3c152b7671bcdb83f*/
} }
AppendRoleList(buf, stmt->granted_roles); AppendRoleList(buf, stmt->granted_roles);
@ -362,9 +362,9 @@ AppendGrantRoleStmt(StringInfo buf, GrantRoleStmt *stmt)
if (stmt->is_grant) if (stmt->is_grant)
{ {
if (stmt->admin_opt) if (false)
{ {
appendStringInfo(buf, " WITH ADMIN OPTION"); /* TODO PG commit: e3ce2de09d814f8770b2e3b3c152b7671bcdb83f*/
} }
if (stmt->grantor) if (stmt->grantor)