Postgres: Alter existing user permissions

 =# ALTER USER role_specification WITH OPTION1 OPTION2 OPTION3;


=# ALTER USER librarian WITH SUPERUSER;
ALTER ROLE

These options range from CREATEDBCREATEROLECREATEUSER, and even SUPERUSER. Additionally, most options also have a negative counterpart, informing the system that you wish to deny the user that particular permission. These option names are the same as their assignment counterpart, but are prefixed with NO (e.g. NOCREATEDBNOCREATEROLENOSUPERUSER).



=# ALTER USER librarian WITH NOSUPERUSER;
ALTER ROLE

Comments

Popular posts from this blog

Oracle: To clean up WRI$_ADV_OBJECTS