pg_dump fails with error: `FATAL: role "username" does not exist`
<p>I have a db named <code>backupdb</code>, I want to import this to my local rails app so I want to take a dump of it. </p>

<p>When I am running <code>pg_dump backupdb</code>, I am getting below error.</p>

<blockquote>
  <p>pg_dump: [archiver (db)] connection to database "backupdb" failed: FATAL:  role "username" does not exist</p>
</blockquote>

<p>what's wrong here. Please help.</p>

<p>I downloaded the db from my email and then trying to create a dump so I can import it to my local rails app</p>