2017-12-27 53 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

당신은 단지 클러스터를 사용할 수 없게 만든 "컷"디렉토리 덮어 후 - 빌드 새