@@ -323,25 +323,25 @@ CreateRole(ParseState *pstate, CreateRoleStmt *stmt)
323
323
ereport (ERROR ,
324
324
(errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
325
325
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 ." ,
327
327
"SUPERUSER" , "SUPERUSER" )));
328
328
if (createdb && !have_createdb_privilege ())
329
329
ereport (ERROR ,
330
330
(errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
331
331
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 ." ,
333
333
"CREATEDB" , "CREATEDB" )));
334
334
if (isreplication && !has_rolreplication (currentUserId ))
335
335
ereport (ERROR ,
336
336
(errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
337
337
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 ." ,
339
339
"REPLICATION" , "REPLICATION" )));
340
340
if (bypassrls && !has_bypassrls_privilege (currentUserId ))
341
341
ereport (ERROR ,
342
342
(errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
343
343
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 ." ,
345
345
"BYPASSRLS" , "BYPASSRLS" )));
346
346
}
347
347
@@ -758,7 +758,7 @@ AlterRole(ParseState *pstate, AlterRoleStmt *stmt)
758
758
ereport (ERROR ,
759
759
(errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
760
760
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 ." ,
762
762
"SUPERUSER" , "SUPERUSER" )));
763
763
if (!superuser () && dissuper )
764
764
ereport (ERROR ,
@@ -1031,7 +1031,7 @@ AlterRoleSet(AlterRoleSetStmt *stmt)
1031
1031
ereport (ERROR ,
1032
1032
(errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
1033
1033
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 ." ,
1035
1035
"SUPERUSER" , "SUPERUSER" )));
1036
1036
}
1037
1037
else
@@ -1171,7 +1171,7 @@ DropRole(DropRoleStmt *stmt)
1171
1171
ereport (ERROR ,
1172
1172
(errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
1173
1173
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 ." ,
1175
1175
"SUPERUSER" , "SUPERUSER" )));
1176
1176
if (!is_admin_of_role (GetUserId (), roleid ))
1177
1177
ereport (ERROR ,
@@ -1426,7 +1426,7 @@ RenameRole(const char *oldname, const char *newname)
1426
1426
ereport (ERROR ,
1427
1427
(errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
1428
1428
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 ." ,
1430
1430
"SUPERUSER" , "SUPERUSER" )));
1431
1431
}
1432
1432
else
@@ -2141,14 +2141,14 @@ check_role_membership_authorization(Oid currentUserId, Oid roleid,
2141
2141
(errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
2142
2142
errmsg ("permission denied to grant role \"%s\"" ,
2143
2143
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 ." ,
2145
2145
"SUPERUSER" , "SUPERUSER" )));
2146
2146
else
2147
2147
ereport (ERROR ,
2148
2148
(errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
2149
2149
errmsg ("permission denied to revoke role \"%s\"" ,
2150
2150
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 ." ,
2152
2152
"SUPERUSER" , "SUPERUSER" )));
2153
2153
}
2154
2154
}
0 commit comments