postgresql_16:7.1.24.2 Parameters
PostgreSQL 16 > Reference > SQL Commands > ALTER ROLE > Parameters
*name*
The name of the role whose attributes are to be altered.
CURRENT_ROLE, CURRENT_USER
Alter the current user instead of an explicitly identified role.
SESSION_USER
Alter the current session user instead of an explicitly identified role.
**SUPERUSER, NOSUPERUSER, CREATEDB, NOCREATEDB, CREATEROLE, NOCREATEROLE, INHERIT, NOINHERIT, LOGIN, NOLOGIN, REPLICATION, NOREPLICATION, BYPASSRLS, NOBYPASSRLS, CONNECTION LIMIT *connlimit*, [ ENCRYPTED ] PASSWORD '*password*', PASSWORD NULL, VALID UNTIL '*timestamp*'**
These clauses alter attributes originally set by CREATE ROLE (see postgresql_16:7.1.76). For more information, see the CREATE ROLE reference page.
*new_name*
The new name of the role.
*database_name*
The name of the database the configuration variable should be set in.
***configuration_parameter*, *value***
Set this role's session default for the specified configuration parameter to the given value. If *value* is DEFAULT or, equivalently, RESET is used, the role-specific variable setting is removed, so the role will inherit the system-wide default setting in new sessions. Use RESET ALL to clear all role-specific settings. SET FROM CURRENT saves the session's current value of the parameter as the role-specific value. If IN DATABASE is specified, the configuration parameter is set or removed for the given role and database only.
Role-specific variable settings take effect only at login; SET ROLE (see postgresql_16:7.1.174) and SET SESSION AUTHORIZATION (see postgresql_16:7.1.175) do not process role-specific variable settings.
See (see postgresql_16:7.1.172) and (see postgresql_16:4.5) for more information about allowed parameter names and values.