@@ -323,25 +323,25 @@ CreateRole(ParseState *pstate, CreateRoleStmt *stmt)
323323 ereport (ERROR ,
324324 (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
325325 errmsg ("permission denied to create role" ),
326- errdetail ("Only roles with the %s attribute may create roles with %s ." ,
326+ errdetail ("Only roles with the %s attribute may create roles with the %s attribute ." ,
327327 "SUPERUSER" , "SUPERUSER" )));
328328 if (createdb && !have_createdb_privilege ())
329329 ereport (ERROR ,
330330 (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
331331 errmsg ("permission denied to create role" ),
332- errdetail ("Only roles with the %s attribute may create roles with %s ." ,
332+ errdetail ("Only roles with the %s attribute may create roles with the %s attribute ." ,
333333 "CREATEDB" , "CREATEDB" )));
334334 if (isreplication && !has_rolreplication (currentUserId ))
335335 ereport (ERROR ,
336336 (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
337337 errmsg ("permission denied to create role" ),
338- errdetail ("Only roles with the %s attribute may create roles with %s ." ,
338+ errdetail ("Only roles with the %s attribute may create roles with the %s attribute ." ,
339339 "REPLICATION" , "REPLICATION" )));
340340 if (bypassrls && !has_bypassrls_privilege (currentUserId ))
341341 ereport (ERROR ,
342342 (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
343343 errmsg ("permission denied to create role" ),
344- errdetail ("Only roles with the %s attribute may create roles with %s ." ,
344+ errdetail ("Only roles with the %s attribute may create roles with the %s attribute ." ,
345345 "BYPASSRLS" , "BYPASSRLS" )));
346346 }
347347
@@ -758,7 +758,7 @@ AlterRole(ParseState *pstate, AlterRoleStmt *stmt)
758758 ereport (ERROR ,
759759 (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
760760 errmsg ("permission denied to alter role" ),
761- errdetail ("Only roles with the %s attribute may alter roles with %s ." ,
761+ errdetail ("Only roles with the %s attribute may alter roles with the %s attribute ." ,
762762 "SUPERUSER" , "SUPERUSER" )));
763763 if (!superuser () && dissuper )
764764 ereport (ERROR ,
@@ -1031,7 +1031,7 @@ AlterRoleSet(AlterRoleSetStmt *stmt)
10311031 ereport (ERROR ,
10321032 (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
10331033 errmsg ("permission denied to alter role" ),
1034- errdetail ("Only roles with the %s attribute may alter roles with %s ." ,
1034+ errdetail ("Only roles with the %s attribute may alter roles with the %s attribute ." ,
10351035 "SUPERUSER" , "SUPERUSER" )));
10361036 }
10371037 else
@@ -1171,7 +1171,7 @@ DropRole(DropRoleStmt *stmt)
11711171 ereport (ERROR ,
11721172 (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
11731173 errmsg ("permission denied to drop role" ),
1174- errdetail ("Only roles with the %s attribute may drop roles with %s ." ,
1174+ errdetail ("Only roles with the %s attribute may drop roles with the %s attribute ." ,
11751175 "SUPERUSER" , "SUPERUSER" )));
11761176 if (!is_admin_of_role (GetUserId (), roleid ))
11771177 ereport (ERROR ,
@@ -1426,7 +1426,7 @@ RenameRole(const char *oldname, const char *newname)
14261426 ereport (ERROR ,
14271427 (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
14281428 errmsg ("permission denied to rename role" ),
1429- errdetail ("Only roles with the %s attribute may rename roles with %s ." ,
1429+ errdetail ("Only roles with the %s attribute may rename roles with the %s attribute ." ,
14301430 "SUPERUSER" , "SUPERUSER" )));
14311431 }
14321432 else
@@ -2141,14 +2141,14 @@ check_role_membership_authorization(Oid currentUserId, Oid roleid,
21412141 (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
21422142 errmsg ("permission denied to grant role \"%s\"" ,
21432143 GetUserNameFromId (roleid , false)),
2144- errdetail ("Only roles with the %s attribute may grant roles with %s ." ,
2144+ errdetail ("Only roles with the %s attribute may grant roles with the %s attribute ." ,
21452145 "SUPERUSER" , "SUPERUSER" )));
21462146 else
21472147 ereport (ERROR ,
21482148 (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
21492149 errmsg ("permission denied to revoke role \"%s\"" ,
21502150 GetUserNameFromId (roleid , false)),
2151- errdetail ("Only roles with the %s attribute may revoke roles with %s ." ,
2151+ errdetail ("Only roles with the %s attribute may revoke roles with the %s attribute ." ,
21522152 "SUPERUSER" , "SUPERUSER" )));
21532153 }
21542154 }
0 commit comments