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.

pgx_dmpallおよびpg_basebackupにおけるテーブル単位のリストア

Posted at

【前提】DBのバックアップはpgx_dmpallまたはpg_basebackupを使用
Q.上記2つのモードにおいて、バックアップファイルからテーブル単位等一部のデータのみをリストアは可能か。
A.不可。pgx_dmpall および pg_basebackup を利用して取得したバックアップから、テーブル単位でのリストアは行えない。

Q.差分バックアップ(アーカイブWAL)のデータも含めて可能か
A.アーカイブ WAL が出力されている場合でも、テーブル単位でのリストアは行うことは
できない。

【補足】テーブル単位でのバックアップ/リストアを行いたい場合は、以下の2通りの方法がある(他にもあるかも)
1.pg_dump コマンドに -t オプションをつけて取得したバックアップファイルをリストア
2.pg_dump コマンドに -Fc オプションなどの圧縮形式で取得するオプションをつけてバックアップファイルを取得し、pg_restore コマンドに -t オプションをつけてリストア

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?