I'm trying to restore a PostgreSQL database by executing the SQL that pg_dump created, on an empty database.
I'm getting this error:
ERROR: syntax error at or near "\"
LINE 5211: \.
lines 5210 and 5211 read:
COPY auth_group (id, name) FROM stdin;
\.
It works fine on my Linux server, where I use this command:
psql -U dbname < dumpfile.sql
but on Windows, I'm not sure how to do the same, so I've been trying to run the dumpfile's sql from pgAdminIII query utility.
What the recommended way of importing a db from a dump on Windows? Or: how can that syntax issue be resolve?
Any help is much appreciated!
Martin