title: Postgresql: Scripting psql execution with password
body: <p>How can I call <strong>psql</strong> so that it <strong>doesn't prompt for a password</strong>?</p>
  
  <p>This is what I have:</p>
  
  <pre><code>psql -Umyuser &lt; myscript.sql
  </code></pre>
  
  <p>However, I couldn't find the argument that passes the password, and so psql always prompts for it.</p>