title: Postgresql -bash: psql: command not found
body: <p>I have installed PostgreSQL and it is working ok. However, when I went to restore a backup I got the error <code>-bash: psql: command not found</code>:</p>
  
  <pre><code> [root@server1 ~]# su postgres
   [postgres@server1 root]$ psql -f all.sql
   bash: psql: command not found
   [postgres@server1 root]$ 
  </code></pre>
  
  <p>What have I done wrong?</p>