title: Why can't I add PostgreSQL to my path?
body: <p>After I upgraded to Mavericks, PostgreSQL started playing up, giving this error message whenever I call <code>pg_restore</code> without calling the full path:</p>
  
  <pre><code>pg_restore: command not found
  </code></pre>
  
  <p>If I specify the full path it works, but that's obvious not optimal:</p>
  
  <pre><code>/Applications/Postgres93.app/Contents/MacOS/bin/pg_restore --verbose --clean --no-acl --no-owner -h localhost -U steven -d db/testivate_development $file_path
  </code></pre>
  
  <p>To fix this problem, I have tried removing all versions of PostgreSQL (with Homebrew) and then installed Postgres.app. You can confirm this has worked like this:</p>
  
  <pre><code>$ sudo find / -name pg_restore
  /Applications/Postgres93.app/Contents/MacOS/bin/pg_restore
  find: /dev/fd/3: Not a directory
  find: /dev/fd/4: Not a directory
  </code></pre>
  
  <p>To add PostgreSQL to my path, I've tried adding each of the following lines to <code>~/.bash_profile</code>, <code>~/bashrc</code> and <code>~/.zshrc</code>, restarting after each attempt:</p>
  
  <pre><code>export PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"
  </code></pre>
  
  <p>...as per the postgresapp.com documentation, and then...</p>
  
  <pre><code>export PATH="/Applications/Postgres93.app/Contents/MacOS/bin:$PATH"
  </code></pre>
  
  <p>...as per the comments below.</p>
  
  <p>None of this has solved my problem.</p>