psql invalid command \N while restore sql

前端 未结 14 885
后悔当初
后悔当初 2020-12-04 15:54

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

14条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-04 16:46

    My solution was this:

    psql -U your_user your_db < your.file.here.sql  2>&1|more
    

    this way I could read the error message

    I hope this helps anybody.

提交回复
热议问题