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.

--

Thanks & Regards,

Raghu Ram

EnterpriseDB: http://www.enterprisedb.com

В списке pgsql-general по дате отправления:

Предыдущее
От: Lonni J Friedman
Дата:
Сообщение: problems after restoring from a pg_basebackup
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: problems after restoring from a pg_basebackup