Closed zoiman closed 1 month ago
I am using an alias_dsn and a .pgpass The alias looks like this:
.pgpass
mydb= 'postgresql://postgres@mydbcluster:5432/myInitialDB'
and the corresponding part in the .pgpass file looks like this:
mydbcluster:5432:myInitialDB:password
I can connect without entering the password with the alias, but when I try to switch the db via \connect otherDB I get the following error:
\connect otherDB
connection failed: connection to server at "someIP", port 5432 failed: fe_sendauth: no password supplied
sorry my bad, the solution is to just supply the same entry in .pgpass file for each db.
Description
I am using an alias_dsn and a
.pgpass
The alias looks like this:and the corresponding part in the
.pgpass
file looks like this:I can connect without entering the password with the alias, but when I try to switch the db via
\connect otherDB
I get the following error:Your environment