diff --git a/doc/src/sgml/ref/createuser.sgml b/doc/src/sgml/ref/createuser.sgml index 1ce1ae6bb2..b002593a23 100644 --- a/doc/src/sgml/ref/createuser.sgml +++ b/doc/src/sgml/ref/createuser.sgml @@ -1,5 +1,5 @@ @@ -378,12 +378,14 @@ PostgreSQL documentation $ createuser -P -s -e joe Enter password for new role: xyzzy Enter it again: xyzzy -CREATE ROLE joe PASSWORD 'xyzzy' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN; +CREATE ROLE joe PASSWORD 'md5b5f5ba1a423792b526f799ae4eb3d59e' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN; In the above example, the new password isn't actually echoed when typed, - but we show what was typed for clarity. However the password - will appear in the echoed command, as illustrated — - so you don't want to use -e when assigning a password, if + but we show what was typed for clarity. As you see, the password is + encrypted before it is sent to the client. If the option + is used, the password will appear in the echoed command + (and possibly also in the server log and elsewhere), + so you don't want to use