title: postgresql - start on mac - `pg_ctl` not working
body: <p>I want to use the pre-installed postgresql on my local machine (mac os 10.7.5), when I run <code>which psql</code> I find it (in <code>/usr/bin/psql</code>), but then running </p>
  
  <pre><code>pg_ctl -D /usr/bin/psql -l /usr/bin/psql/server.log start
  </code></pre>
  
  <p>results in:</p>
  
  <pre><code>-bash: pg_ctl: command not found
  </code></pre>
  
  <p>How can I start/use my postgresql database? do I need to install it (with say Homebrew) or can I use the pre-installed one on my mac?
  I also tried using the <code>initdb</code> command (<code>initdb /usr/bin/psql -E utf8</code>) and also go tthe same message: <code>-bash: initdb: command not found</code>.</p>
  
  <p>Also, is this <code>psql</code> the same as <code>postgres</code>? (I tried <code>which postgres</code> and got nothing)</p>
  
  <p>Update: I'm using <code>psql</code> commands in the command line, but am getting there the following message (for <code>psql -l</code> and <code>psql -a</code> for instance): </p>
  
  <pre><code>psql: could not connect to server: No such file or directory
  Is the server running locally and accepting
  connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
  </code></pre>