이 문서는 지원되지 않는 버전의 PostgreSQL을위한 것입니다.
당신은에 대해 같은 페이지를 보려고 할 수 있습니다postgresql : 문서 : 17 : 와이즈 토토버전 또는 위에 나열된 다른 지원 버전 중 하나입니다.

범퍼카 토토

이름

범퍼카 토토- 정리postgresqlWAL 아카이브 파일

시놉시스

범퍼카 토토 [옵션...]Archivelocation OldestKeptWalfile

설명

범퍼카 토토가 설계되었습니다archive_cleanup_command대기 서버로 실행할 때 WAL 파일 아카이브를 정리하려면PostgreSQL : 문서 : 9.2 : 로그-선집 윈 토토 서버). 범퍼카 토토

사용할 대기 서버를 구성하려면범퍼카 토토, 이것을 그것에 넣습니다recovery.conf구성 파일 :

archive_cleanup_command = 'pg_archivecleanupArchivelocation%r '

여기서Archivelocationis

내에서 사용될 때archive_cleanup_command,%r인수가 제거됩니다Archivelocation. 이것은 숫자를 최소화합니다Archivelocation일시적입니다not시기Archivelocation는 장기적으로 의도 된 것입니다

독립형 프로그램으로 사용하는 경우 모든 왈 파일 논리적OldestKeptWalfileArchivelocation. 이 모드에서.Backup파일 이름 만OldestKeptWalfile. 이것은 당신이 허용합니다000000010000003700000010:

범퍼카 토토 -D 아카이브 000000010000370000000.00000020.Backup

범퍼카 토토가정합니다Archivelocationis

옵션

범퍼카 토토

-d

디버그 로깅 출력을 많이 인쇄Stderr.

-n

했던 파일 이름 인쇄stdout(건조를 수행합니다

-v
-버전

인쇄범퍼카 토토버전 및

-x Extension

프로그램을 독립형 유틸리티로 사용할 때 제공하십시오-x .gz.

-?
-help

도움말 표시범퍼카 토토명령 줄

노트

범퍼카 토토가 설계되었습니다postgresql8.0 및postgresql9.0 이상으로 사용될 때

범퍼카 토토쓰여졌습니다

Linux 또는 Unix 시스템에서 사용할 수 있습니다.

archive_cleanup_command = 'pg_archivecleanup -d/mnt/standby/archive %r 2 >> cleanup.log'

아카이브 디렉토리가 물리적으로 위치한 곳archive_commandNFS에서 액세스하고 있지만

  • 생산 디버깅 출력에서cleanup.log

  • 아카이브에서 필요하지 않은 파일을 제거합니다

저자

Simon Riggs

참조

pg_standby