We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb5cdd8 commit 5a35c98Copy full SHA for 5a35c98
src/backend/commands/user.c
@@ -1378,7 +1378,7 @@ RenameRole(const char *oldname, const char *newname)
1378
* Only superusers can mess with superusers. Otherwise, a user with
1379
* CREATEROLE can rename a role for which they have ADMIN OPTION.
1380
*/
1381
- if (((Form_pg_authid) GETSTRUCT(oldtuple))->rolsuper)
+ if (authform->rolsuper)
1382
{
1383
if (!superuser())
1384
ereport(ERROR,
0 commit comments