I'm an undergrad student and very new to postgresql. I have a question
to which I haven't been able to find an answer yet.
I installed postgresql and ran the command `psql -U postgres` and as
expected it failed because the role doesn't exist.
But when I tried to run `psql postgres`, it worked! My question is why
is this command working? I've not been able to find this command
anywhere in the documentation.
Now, I also created the role postgres and both commands are working.
Note: when I run `psql postgres` the logged-in user is the superuser to
OS. I'm doing this on High Sierra.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 17:40:43 |
Calls: | 6,646 |
Calls today: | 1 |
Files: | 12,190 |
Messages: | 5,327,175 |