I' ve studied some PostgreSQL. In the principle i' ve been teach to create a postgress's user with same name of my linux's user.
Now i want to try to make an application, and for this reason i would like to create a new user associated to the database of the application. How to do that?
I tried this:
- sudo -u postgres psql postgres
- postgres=# create user myuser with password 'myuserpassword' createdb;
CREATE ROLE
Then i try to access the database template1 with the user just created using:
psql template1 myuser
When i type psql template1
and then tab, i don't get the user "myuser" and don't know why.
Thanks for help