I am trying to restore an SQL file I created from a pg_dump however trying to load the dump into a new host and I am getting many syntax errors as seen below:
psql:subscription_dump.sql:3741: ERROR: syntax error at or near "We"
LINE 1: We need to see if there's anything else needing
doing. ...
^
What it is showing is some of the data from the database. Why is data present in the database causing syntax errors when importing?
psql "service=subscription_odyssey" -f subscription_dump.sql
After advice on #postgressql I changed my command to the following:
psql "service=subscription_odyssey" -f subscription_dump.sql -v ON_ERROR_STOP=1
Here is the first reported error now:
psql "service=subscription_odyssey" -f subscription_dump.sql -v ON_ERROR_STOP=1
SET
psql:subscription_dump.sql:6: ERROR: unrecognized configuration parameter "lock_timeout"