Re: postgresql standby using pg_archivecleanup don't work
От | raghu ram |
---|---|
Тема | Re: postgresql standby using pg_archivecleanup don't work |
Дата | |
Msg-id | CALnrrJSVFoPONrRraGRULq7b0qim0dcdwQnfbOrSQ8MVcpG+zQ@mail.gmail.com обсуждение исходный текст |
Ответ на | postgresql standby using pg_archivecleanup don't work (leo xu <leoxu8703@gmail.com>) |
Ответы |
Re: postgresql standby using pg_archivecleanup don't work
|
Список | pgsql-general |
On Fri, Apr 27, 2012 at 11:44 AM, leo xu <leoxu8703@gmail.com> wrote:
i have one parimary ,two standby. one standby using stream replication
connect to primary.another standby using basebackup,then recovery database
--cp archivelog from primary using crontab.i want to delete old archivelog
from standby.but configure pg_archivecleanup don't work,meantime no error in
postgresql log.postgresql version is 9.1.2.
the following is my recovery.conf :
This is my recovery.conf:
standby_mode = 'on'
restore_command = 'cp /attend_pg_backup/u02/pg9.1/archivelog/%f %p'
archive_cleanup_command ='pg_archivecleanup
/attend_pg_backup/u02/pg9.1/archivelog %r'
Replace archive_cleanup_command in recovery.conf file as follows:
archive_cleanup_command ='pg_archivecleanup /attend_pg_backup/u02/pg9.1/archivelog %r'
[to]
archive_cleanup_command = '/opt/PostgreSQL/9.1/bin/pg_archivecleanup -d /attend_pg_backup/u02/pg9.1/archivelog %r 2>>/tmp/cleanup.log'
and then restart the Standby PostgreSQL cluster.
В списке pgsql-general по дате отправления: