CREATE USER is an alias for CREATE ROLE, not its own command any longer,
so clean up references to the 'sql-createuser' link to go to
'sql-createrole' instead.
In passing, change a few cases of 'CREATE USER' to be
'CREATE ROLE ... LOGIN'. The remaining cases appear reasonable and
also mention the distinction between 'CREATE ROLE' and 'CREATE USER'.
Also, don't say CREATE USER "assumes" LOGIN, but rather "includes".
Patch-by: David G. Johnston, with assumes->includes by me.
Discussion: https://postgr.es/m/CAKFQuwYrbhKV8hH4TEABrDRBwf=gKremF=mLPQ6X2yGqxgFpYA@mail.gmail.com
separate from operating system user passwords. The password for
each database user is stored in the pg_authid system
catalog. Passwords can be managed with the SQL commands
- user"> and
+ role"> and
,
- e.g., CREATE USER foo WITH PASSWORD 'secret',
+ e.g., CREATE ROLE foo WITH LOGIN PASSWORD 'secret',
command \password.
If no password has been set up for a user, the stored password
To create a database, you must be a superuser or have the special
CREATEDB privilege.
- See user">.
+ See role">.
CREATE USER name;
(CREATE USER is equivalent to CREATE ROLE
- except that CREATE USER assumes LOGIN by
+ except that CREATE USER includes LOGIN by
default, while CREATE ROLE does not.)