2
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

psqlでダンプデータのリストア中に「invalid command \N」エラーが出るのを回避する

Posted at

ダンプデータ生成時にcopyではなくinsert文を生成するようにする

pg_dump -h ${ホスト} -p ${ポート} -U ${ユーザー名} --inserts -v ${schema名} > ${ファイル名}.sql

参考URL
https://qastack.jp/programming/20427689/psql-invalid-command-n-while-restore-sql

2
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?