title: How to change the default database location in postgresql.?
body: <p>I am working with PostgreSQL-flask on a windows machine. i wanted to change the default database location into a  project data folder, in my project directory, just for this project. I prefer all my project files in a single directory. In mongoDb i wrote a batch file, with a single line</p>
  
  <pre><code>C:\mongodb\bin\mongod.exe --dbpath C:\projects\project XXX\project-data\db --journal
  </code></pre>
  
  <p>How can I do this with PostgreSQL?</p>