I\'m trying to restore my dump file, but it caused an error:
psql:psit.sql:27485: invalid command \\N
Is there a solution? I searched, but
I followed all these example's and they all failed with the error we are talking about:
Copy a table from one database to another in Postgres
What worked was the syntax with -C, see here:
pg_dump -C -t tableName "postgres://$User:$Password@$Host:$Port/$DBName" | psql "postgres://$User:$Password@$Host:$Port/$DBName"
Also if there are differing Schema's between the two, I find altering one dB's schema to match the others is necessary for Table copies to work, eg:
DROP SCHEMA public;
ALTER SCHEMA originalDBSchema RENAME TO public;