I get the following error while restoring database from dump file on server:
ERROR: relation "table_id_seq" does not exist
LINE 1: SELECT pg_catalog.setval('table_id_seq', 362, true);
- my local psql version is 10.2
- server psql version is 9.6.8
Here is my dump command:
pg_dump -U username -h localhost db_name > filename.sql
Here is my restore command on server:
psql -U username -h localhost db_name < filename.sql
Please help, Thanks.