ALTER USER
大纲
ALTER USER role_specification [ WITH ] option [ ... ] 其中 option 可以是: SUPERUSER | NOSUPERUSER | CREATEDB | NOCREATEDB | CREATEROLE | NOCREATEROLE | INHERIT | NOINHERIT | LOGIN | NOLOGIN | REPLICATION | NOREPLICATION | BYPASSRLS | NOBYPASSRLS | CONNECTION LIMIT connlimit | [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password' | VALID UNTIL 'timestamp' ALTER USER name RENAME TO new_name ALTER USER role_specification SET configuration_parameter { TO | = } { value | DEFAULT } ALTER USER role_specification SET configuration_parameter FROM CURRENT ALTER USER role_specification RESET configuration_parameter ALTER USER role_specification RESET ALL 其中 role_specification 可以是: [ GROUP ] role_name | CURRENT_USER | SESSION_USER