title: Run psql and pg_dump without password and without using sudo -u postgres
body: <p>I am trying to copy one table from one database to another:</p>
  
  <pre><code>sudo -u postgres pg_dump -t _stats db30 | psql db8;
  </code></pre>
  
  <p>However, I always get asked for a password, and I do not know what it is. Is there a way to do this without pg_dump? Is there a way so that I can not be asked for a password when I run <code>psql</code>? </p>
  
  <p>Note, to get into postgres I have to run <code>sudo -u postgres psql</code> instead of psql</p>