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 5 years have passed since last update.

PostgreSQLでダンプされたバイナリファイルをインポートする手順

Posted at

PostgreSQLを全く触った事がなく、ダンプされたバイナリファイルのインポート(postgreSQLではリストアという)の手順がわからなかったので、メモしておきます。


バイナリファイルの場合はpg_restoreコマンドを使う必要があるようです。
pg_restore -U postgres -d データベース名 ファイルまでのパス
例:pg_restore -U postgres -d hoge /Users/hogeuser/121949-31352139-13r45(バイナリファイルはこんな感じ)

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?