Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ALTER ROLE

ALTER ROLE name PASSWORD 'password';
ALTER ROLE name { LOGIN | NOLOGIN };
ALTER ROLE name { SUPERUSER | NOSUPERUSER };
ALTER ROLE name { CREATEDB | NOCREATEDB };
ALTER ROLE name { CREATEROLE | NOCREATEROLE };
ALTER ROLE name { INHERIT | NOINHERIT };
ALTER ROLE name VALID UNTIL 'timestamp';
ALTER ROLE name ENABLE;
ALTER ROLE name DISABLE;

Changes role attributes. VALID UNTIL 'infinity' removes expiration.