Open levihb opened 4 years ago
Oh ok I didn't realize it was trying to get the password from the keyring.
I think the keyring only needs to be checked if there's no valid password in .pgpass
though. Because at the moment the search order is:
PGPASSWORD
environment variable.pgpass
Surely it should follow the default logic of psql
and check .pgpass
before the keyring? Because otherwise you have to turn the keyring off.
Description
Using the standard services syntax to connect, e.g.
Does not appear to work with pgcli? I noticed that this was supposedly fixed with #1035 and #1051 but it still doesn't work for me? This is rather frustrating as I use services a lot. I've tried both:
and the following (as this normally works on 3rd party interactions even if the above doesn't):
Instead I just get asked for a password?
Your environment
pip freeze: