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.

pg_restoreのよく使われると思われるオプション

Posted at

オプション

オプション 意味
--clean 再作成前にデータベースオブジェクトを整理(削除)します。
--if-exists データベースオブジェクトを初期化するときに、条件コマンドを使います(つまりIF EXISTS句を追加します)。 このオプションは、--cleanも指定されているのでなければ有効にはなりません。
--verbose 冗長モードを指定します。(詳細表示)
-Fc Postgres専用のフォーマットでpg_dumpしたときはそれに対応するようにつける

  • ifexistをつけておくと、リストア先のデータベースが存在するとスキップする
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?