postgresql rename postgres user
Synopsis. ALTER USER name [ [ WITH ] option [ ... ] ] where option can be: CREATEDB | NOCREATEDB | CREATEUSER | NOCREATEUSER | [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password' | VALID UNTIL 'abstime' ALTER USER name RENAME TO newname ALTER ,... ALTER USER name RENAME TO new_name ALTER USER role_specification | ALL } [ IN DATABASE database_name ] SET configuration_parameter TO | = } value | DEFAULT } ALTER USER role_specification | ALL } [ IN DATABASE database_name ] SET configuration_par,... LOGIN | NOLOGIN | REPLICATION | NOREPLICATION | CONNECTION LIMIT connlimit | [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password' | VALID UNTIL 'timestamp' ALTER USER name RENAME TO new_name ALTER USER name | ALL } [ IN DATABASE database_n,... 'password' | VALID UNTIL 'timestamp' ALTER USER name RENAME TO new_name ALTER USER name SET configuration_parameter TO | = } value | DEFAULT } ALTER USER name SET configuration_parameter FROM CURRENT ALTER USER name RESET configurati,Database superusers can rename any role. Roles having CREATEROLE privilege can rename non-superuser roles. The current session user cannot be renamed. (Connect as a different user if you need to do that.) Because MD5-encrypted passwords use the role name ,... LOGIN | NOLOGIN | REPLICATION | NOREPLICATION | CONNECTION LIMIT connlimit | [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password' | VALID UNTIL 'timestamp' ALTER USER name RENAME TO new_name ALTER USER name | ALL } [ IN DATABASE database_n,... ALTER USER name RENAME TO new_name ALTER USER name [ IN DATABASE database_name ] SET configuration_parameter TO | = } value | DEFAULT } ALTER USER name [ IN DATABASE database_name ] SET configuration_parameter FROM CURRENT ALTER USER name [ IN DATAB,Database superusers can rename any role. Roles having CREATEROLE privilege can rename non-superuser roles. The current session user cannot be renamed. (Connect as a different user if you need to do that.) Because MD5-encrypted passwords use the role name ,This PostgreSQL tutorial explains how to rename a user in PostgreSQL with syntax and examples. The ALTER USER statement is used to rename a user in the PostgreSQL database.
相關軟體 PostgreSQL 資訊 | |
---|---|
![]() postgresql rename postgres user 相關參考資料
PostgreSQL: Documentation: 8.0: ALTER USER
Synopsis. ALTER USER name [ [ WITH ] option [ ... ] ] where option can be: CREATEDB | NOCREATEDB | CREATEUSER | NOCREATEUSER | [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password' | VALID UNTIL ... https://www.postgresql.org PostgreSQL: Documentation: 9.5: ALTER USER
... ALTER USER name RENAME TO new_name ALTER USER role_specification | ALL } [ IN DATABASE database_name ] SET configuration_parameter TO | = } value | DEFAULT } ALTER USER role_specification | AL... https://www.postgresql.org PostgreSQL: Documentation: 9.4: ALTER USER
... LOGIN | NOLOGIN | REPLICATION | NOREPLICATION | CONNECTION LIMIT connlimit | [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password' | VALID UNTIL 'timestamp' ALTER USER name RENAME TO new... https://www.postgresql.org PostgreSQL: Documentation: 9.1: ALTER USER
... 'password' | VALID UNTIL 'timestamp' ALTER USER name RENAME TO new_name ALTER USER name SET configuration_parameter TO | = } value | DEFAULT } ALTER USER name SET configuration_p... https://www.postgresql.org PostgreSQL: Documentation: 9.0: ALTER ROLE
Database superusers can rename any role. Roles having CREATEROLE privilege can rename non-superuser roles. The current session user cannot be renamed. (Connect as a different user if you need to do th... https://www.postgresql.org PostgreSQL: Documentation: 9.3: ALTER USER
... LOGIN | NOLOGIN | REPLICATION | NOREPLICATION | CONNECTION LIMIT connlimit | [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password' | VALID UNTIL 'timestamp' ALTER USER name RENAME TO new... https://www.postgresql.org PostgreSQL: Documentation: 9.2: ALTER USER
... ALTER USER name RENAME TO new_name ALTER USER name [ IN DATABASE database_name ] SET configuration_parameter TO | = } value | DEFAULT } ALTER USER name [ IN DATABASE database_name ] SET configur... https://www.postgresql.org PostgreSQL: Documentation: 9.1: ALTER ROLE
Database superusers can rename any role. Roles having CREATEROLE privilege can rename non-superuser roles. The current session user cannot be renamed. (Connect as a different user if you need to do th... https://www.postgresql.org PostgreSQL: Rename a User - TechOnTheNet
This PostgreSQL tutorial explains how to rename a user in PostgreSQL with syntax and examples. The ALTER USER statement is used to rename a user in the PostgreSQL database. https://www.techonthenet.com |