0

During preparing database according to How to import OpenStreetMap data into PostgreSQL i always get error message C:/Program: No such file or directory after writing psql -U postgres -d gis -f PATH_TO_POSTGRES/share/contrib/postgis-1.5/postgis.sql In my case path looks like : C:\Program Files\PostgreSQL\9.3\share\contrib\postgis-2.1\postgis.sql Thank you for help or advices

2
  • 1
    Try quoting you path or prepending a `\` to the space in your path. Commented Jul 23, 2014 at 9:28
  • I have tried add "\" to the space it did not work but quoting my path worked perfectly! Thank you so much ;) Commented Jul 23, 2014 at 9:42

1 Answer 1

1
psql -U postgres -d gis 
   -f "C:\Program Files\PostgreSQL\9.3\share\contrib\postgis-2.1\postgis.sql"

Here Program Files is separated with space so you need to add double quote around the path.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.