I have a .sql file that was created by postgresql a while back. I now want to import this file onto a windows machine running postgresql.
How do I do this. The file is about 1.5gb.
I have a .sql file that was created by postgresql a while back. I now want to import this file onto a windows machine running postgresql.
How do I do this. The file is about 1.5gb.
click on the SQL Shell and log into the database and use import
command prompt
open your cmd window and type the following (make sure the path of postgres is correct)
start you psql command tool, it will give you dialog like the following
then connect to your database
then import the file
note the / for directory separator
You should use psql command line tool:
This also works for me: