LoginSignup
2
2

More than 5 years have passed since last update.

PostgreSQLでcustom形式でのdumpとリストアしたい時のインストール注意点

Posted at

はじめに

さわって3日めの全くのPostgreSQL初心者です。

これまでMySQL畑にずっとおりました。
とある業務でPostgreSQLに触れる機会があったのですが、pg_dumpしてリストアするときに失敗したので原因と解決策を書いていきます。

状況

  • pg_dumpをカスタム形式でdumpできない
  • カスタム形式でdump済みのpg_dumpがリストアできない

こんな感じで怒られたり

requested compression not available in this installation -- archive will be uncompressed

原因

ソースからインストールしたのですが、インストール途中の./configureのタイミングで

configure: error: zlib library not found

が表示されたのですが、まいっかと思って試しに

./configure --without-zlib

していた事が原因。

検証サーバーだったし普通に動いてたし、まいっかと思ってやっていた。

解決策

yum install readline-devel zlib-devel 

やって
もう一回インストールしなおし

反省点

まいっか良く無い

2
2
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
2