mirror of
https://github.com/postgres/postgres.git
synced 2025-12-22 17:42:17 +03:00
Clarify documentation about PASSWORD in CREATE/ALTER ROLE
The documentation of CREATE/ALTER ROLE has been missing two things related to PASSWORD: - The password value provided needs to be quoted, some places of the documentation marked the field with quotes, but not others, which led to confusion. - PASSWORD NULL was not provided consistently, with ENCRYPTED being not compatible with it. Reported-by: Steven Winfield Author: Michael Paquier Reviewed-by: David G. Johnston Discussion: https://postgr.es/m/154282901979.1316.7418475422120496802@wrigleys.postgresql.org
This commit is contained in:
@@ -33,7 +33,7 @@ ALTER USER <replaceable class="parameter">role_specification</replaceable> [ WIT
|
||||
| REPLICATION | NOREPLICATION
|
||||
| BYPASSRLS | NOBYPASSRLS
|
||||
| CONNECTION LIMIT <replaceable class="parameter">connlimit</replaceable>
|
||||
| [ ENCRYPTED ] PASSWORD '<replaceable class="parameter">password</replaceable>'
|
||||
| [ ENCRYPTED ] PASSWORD '<replaceable class="parameter">password</replaceable>' | PASSWORD NULL
|
||||
| VALID UNTIL '<replaceable class="parameter">timestamp</replaceable>'
|
||||
|
||||
ALTER USER <replaceable class="parameter">name</replaceable> RENAME TO <replaceable>new_name</replaceable>
|
||||
|
||||
Reference in New Issue
Block a user