title: Getting "Access is denied" error when executing pg_dump on Windows
body: <p>I'm trying to execute <code>pg_dump</code> for one of my PostgreSQL databases, but I am having permission problems.</p>
  
  <pre class="lang-none prettyprint-override"><code>C:\Windows\system32&gt;pg_dump -U postgres -p 1863 -O social_sense &gt; C:\\Program Files\\PostgreSQL\\8.4\\data\\social_sense.sql
  </code></pre>
  
  <p><br>
  I am getting the following error:</p>
  
  <blockquote>
    <p>Access is denied</p>
  </blockquote>
  
  <p><br>
  Can anyone enlighten?</p>