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