EDIT: WINDOWS: Yes Windows. Do not redirect me to answers that specify sudo-ing because, hey, I can't sudo on Windows.
I have just done a fresh install of postgres 11 on Windows and I am getting
C:\Users\J\Documents\Development>psql -U postgres
psql: FATAL: password authentication failed for user "postgres"
password retrieved from file "C:\Users\J\AppData\Roaming/postgresql/pgpass.conf"
Note that I do not get an opportunity to enter a password - i.e. I do NOT get a password prompt. There is a password in the pgpass.conf file. I am running the cmd.exe box as Administrator.
There is a link to psql in the folder created at installation but that is no good either. It identically does not ask for a password.
Any ideas? Thanks in advance.