From: | Jason Clark <j(dot)clark(dot)127(dot)0(dot)0(dot)1(at)gmail(dot)com> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: HA warm standby issue with trigger file. |
Date: | 2011-03-03 16:54:02 |
Message-ID: | 720f3825-d765-4d8c-9289-4fccc98ec6b4@i39g2000prd.googlegroups.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Mar 2, 8:37 pm, masao(dot)fu(dot)(dot)(dot)(at)gmail(dot)com (Fujii Masao) wrote:
> On Wed, Mar 2, 2011 at 11:17 PM, Jason Clark
>
> <j(dot)clark(dot)127(dot)0(dot)(dot)(dot)(dot)(at)gmail(dot)com> wrote:
> > so thats not an issue, also, the backup server is pulling the WAL
> > files and loading them properly, here is my recovery.conf file:
>
> > standby_mode = 'on'
> > restore_command = 'usr/pgsql-9.0/bin/pg_standby -d -w 300 -t /tmp/
> > trigger.5423 /mnt/win/ %f %p 2>>standby.log
> > archive_cleanup_command = '/usr/pgsql-9.0/bin/pg_archivecleanup -d /
> > mnt/win %r 2>>cleanup.log
>
> If pg_standby is used, standby_mode must be set to off. Otherwise,
> as you observed, the trigger file cannot promote the standby.
>
> In 9.0, pg_standby doesn't remove the trigger file automatically,
> so if you want that, you need to set recovery_end_command to
> the command which removes the trigger file.
>
> Regards,
>
> --
> Fujii Masao
> NIPPON TELEGRAPH AND TELEPHONE CORPORATION
> NTT Open Source Software Center
>
> --
> Sent via pgsql-admin mailing list (pgsql-ad(dot)(dot)(dot)(at)postgresql(dot)org)
> To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-admin
Perfect! took ages to find that bit. Thank you a ton!
From | Date | Subject | |
---|---|---|---|
Next Message | Uwe Schroeder | 2011-03-04 03:43:46 | Re: How to upgrade PostgreSQL minor releases without a dump/restore? |
Previous Message | Merlin Moncure | 2011-03-03 15:04:04 | Re: [HACKERS] Re: PD_ALL_VISIBLE flag was incorrectly set happend during repeatable vacuum |