title: Executing VACUUM FULL on postgresql db which is stopped/down
body: <p>I am attempting to restart a postgresql db which has stopped/is down and requires a <code>VACUUM</code>.</p>
  
  <p><a href="http://suwala.eu/blog/2010/10/09/how-to-vacuum-postgresql/" rel="nofollow">http://suwala.eu/blog/2010/10/09/how-to-vacuum-postgresql/</a></p>
  
  <p>Following the above sequence of commands, I can't seem to get the last line to execute right.</p>
  
  <pre><code>$ postgres -D /var/lib/pgsql/data YOUR_DATABASE_NAME &lt; /tmp/fix.sql  
  </code></pre>
  
  <p>This gives me an error that says</p>
  
  <pre><code>postgres: invalid argument: "YOUR_DATABASE_NAME"
  Try "postgres --help" for more information.
  </code></pre>
  
  <p>Any idea why?</p>
  
  <p>CLARIFICATION</p>
  
  <p>The 'YOUR_DATABASE_NAME' and the data directory I used on my server are the correct ones. </p>