2017-12-27 30 views
0

私は以前のデータベースのPostgreSQL "data"ディレクトリを持っています。PostgreSQLのpg_xlogフォルダのファイル

could not open file "pg_xlog/000000010000000000000012" (log file 0, segment 18): No such file or directory could not open file "pg_xlog/000000010000000000000011" (log file 0, segment 17): No such file or directory

は、どのように私はこれらのログファイルを見つけることができます:私は、PostgreSQLのデフォルトのインストールから「データ」ディレクトリにこのディレクトリをカットし、それがこのエラーを返す私のPostgreSQLを実行しよう ? PostgreSQLでこれらのファイルを作成する方法は?

+0

を構築しますこれらの名前でファイルを作成しようとしましたが、このエラーが返されました: "ログファイル0、セグメント18、オフセット0から読み込めませんでした:" "ログファイル0、セグメント17、オフセット0:そのようなファイルやディレクトリはありませんry " –

+0

「このディレクトリを切り取ったとき」とはどういう意味ですか?この方法でクラスタをコピーしようとしますか? –

+0

私はデフォルトのインストールから" data "ディレクトリに置き換えました。 –

答えて

0

「コピー」クラスタにするために、あなたは、リンクからの指示に従ってください: https://www.postgresql.org/docs/current/static/backup-file.html

There are two restrictions

  1. The database server must be shut down in order to get a usable backup.
  2. If you have dug into the details of the file system layout of the database, you might be tempted to try to back up or restore only certain individual tables or databases from their respective files or directories. This will not work

あなただけのクラスタが使用不能に作られたディレクトリを「カット」上書きした後 - 新しいもの

関連する問題