How do you create a dblink connection in Postgres without supplying username & password (for security reasons)?
Running the following query returns this error:
SELECT dblink_connect('conn_1','dbname=adatabase');
"could not establish connection 08001"
My pgpass.conf file has the following entry and I'm running the script as the postgres user in pgAdmin:
localhost:5432:*:postgres:apassword
Using dblink_connect_u also returns the same error.
I'm running Postgres 9.2 on Windows 2012 Server