feat: adjust doc/postgres-create-user.md

This commit is contained in:
dancingCycle 2024-02-21 15:42:08 +01:00
parent 58a3565828
commit 671d011d88
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,11 @@
CREATE USER <user name> with encrypted password 'key';
```
* create a `SUPERUSER` user called `user name` with password `key`
```
CREATE USER SUPERUSER <user name> with encrypted password 'key';
```
* OPTION: gant user `user name` access to database `database name`
```
GRANT ALL PRIVILEGES ON DATABASE <database name> TO <user name>;