title: PostgreSQL: pg_dump: [archiver (db)] connection to database "dbase" failed: FATAL: Peer authentication failed for user "postgres"
body: <p>Solved: I added .pgpass in the home.</p>
  <p>I have the line:</p>
  <pre><code>host    all             all             127.0.0.1/32            md5
  </code></pre>
  <p>in /etc/postgresql/9.4/main/pg_hba.conf but when I run:</p>
  <h1>pg_dump -U postgres dbase -f dbase.sql</h1>
  <p>I get:</p>
  <blockquote>
  <p>pg_dump: [archiver (db)] connection to database &quot;dbase&quot; failed:<br />
  FATAL:  Peer authentication failed for user &quot;postgres&quot;</p>
  </blockquote>