0
0

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.

postgresql の dump で特定のテーブルを除きたい場合

Last updated at Posted at 2021-05-27
pg_restore -l latest.dump > restore.pgdump.list

エディタで restore.pgdump.list を開いてインポートしたくない行の前に [;]を付けて保存

pg_restore --verbose --clean --no-acl --no-owner -h localhost -d hogehoge -L restore.pgdump.list latest.dump
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?