Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
postgresqlに問題があり、すべてのファイルをコピーしてから削除しました。次に、新しいものをインストールすると、問題が解決します。古いファイルとテブルを新しいファイルにインポートすることは可能ですか?
それらが同じメジャーバージョン(つまり、9.0から9.1ではなく9.0から9.0.4)である場合は、古いデータディレクトリで起動して、すべてを取得できます。PostgreSQLにはテーブルファイルの単純なインポート機能がないため、一部のテーブルのみをプルする場合は、テーブルを新しいクラスターに選択的に復元できるようにするための最善の策がpg_dump -c続きます。pg_restore -t tablename
pg_dump -c
pg_restore -t tablename