Re: postgresql standby using pg_archivecleanup don't work - Mailing list pgsql-general

From raghu ram
Subject Re: postgresql standby using pg_archivecleanup don't work
Date
Msg-id CALnrrJSVFoPONrRraGRULq7b0qim0dcdwQnfbOrSQ8MVcpG+zQ@mail.gmail.com
Whole thread Raw
In response to postgresql standby using pg_archivecleanup don't work  (leo xu <leoxu8703@gmail.com>)
Responses Re: postgresql standby using pg_archivecleanup don't work  (leo xu <leoxu8703@gmail.com>)
List 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.

--

Thanks & Regards,

Raghu Ram

EnterpriseDB: http://www.enterprisedb.com

pgsql-general by date:

Previous
From: Lonni J Friedman
Date:
Subject: problems after restoring from a pg_basebackup
Next
From: Guillaume Lelarge
Date:
Subject: Re: problems after restoring from a pg_basebackup