title: PSQL file execution
body: <p>I am trying to execute a .sql file using UNIX command line for postgres 9.5. I have tried </p>
  
  <pre><code>psql -s localhost -d postgres &lt; filename.sql
  </code></pre>
  
  <p>where <code>postgres</code> is the name of my database, as well as </p>
  
  <pre><code>psql postgres username &lt; filename.sql
  </code></pre>
  
  <p>and also</p>
  
  <pre><code>psql -af filename.sql
  </code></pre>
  
  <p>and I get the result: </p>
  
  <pre><code>Usage: /Library/PostgreSQL/9.5/scripts/runpsql.sh [wait]
  </code></pre>
  
  <p>for each of these runs. The scripts did not seem to execute, but got no error messages. I am running on Mac OSX. </p>