1# So you do not have to create a database with your role name
2
3psql -U Username DatabaseName
4
1It appears that your package manager failed to create the database named $user for you. The reason that
2
3psql -d template1
4works for you is that template1 is a database created by postgres itself, and is present on all installations. You are apparently able to log in to template1, so you must have some rights assigned to you by the database. Try this at a shell prompt:
5
6createdb
7and then see if you can log in again with
8
9psql -h localhost