I made a backup of a database on my mac and tried to restore it on a computer with ubuntu. When I execute
psql -U uname -d dbname -f ~/dump_from_mac
I have a lot of error messages like "invalid command \N" and "relation 'SomeTable' does not exist". My question is very similar with Can't copy table to another database with pg_dump but I don't know how to fix my dump file. I wipe my mac and can't make new dump.
psql -v ON_ERROR_STOP=1
as suggested in: https://mcmap.net/q/117254/-psql-invalid-command-n-while-restore-sql – Halloran