It happened so many times it deserves a self note. PostgreSQL installed and now it’s time to create a new user. Or should I say time to google for the create-user-command-I-never-remember?
To create a new user:
1
| |
If you want the user to also be able to create databases as you probably want for a local machine user:
1
| |
Or you can grant CREATEDB to an existent user:
1
| |
And finally, if you want to get rid of an user:
1
| |