feat: adjust postgres-create-user.md

This commit is contained in:
dancingCycle 2022-09-16 10:15:55 +02:00
parent 6d8a822aed
commit 10966316cd
1 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,11 @@ CREATE USER <user name> with encrypted password '<key>';
grant all privileges on database <database name> to <user name>;
```
* OPTION: add all privileges for a <schema name> to a <user>
```
GRANT ALL ON SCHEMA <schema name> TO <user name>;
```
* OPTION: if <user name> already exist, pw can be changed this way
```
ALTER USER <user name> WITH ENCRYPTED PASSWORD '<key>';