From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Scott Mead <scottm(at)openscg(dot)com> |
Cc: | sunpeng <bluevaley(at)gmail(dot)com>, PostgreSQL general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Why warm-standby doesn't work using file-based log shipping method? |
Date: | 2012-02-22 08:25:09 |
Message-ID: | CABUevExd1CEp9ALHL0Zi8M1UTBfDoQUR7dC9a8Lu12aT+Y=v1A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, Feb 21, 2012 at 23:59, Scott Mead <scottm(at)openscg(dot)com> wrote:
>
> On Tue, Feb 21, 2012 at 5:09 AM, sunpeng <bluevaley(at)gmail(dot)com> wrote:
>>
>> I try to setup warm-standby using file-based log shipping method:
>> Master: 5432 port
>> Standby:6432 port at same machine
>> Master's :
>>
>> wal_level = archive
>> archive_mode = on
>> archive_command = 'cp %p /home/postgres/archive/%f'
>>
>> Standby's restore_command = 'cp /home/postgres/archive/%f %p'
>
> The slave's restore_command needs to be pg_standby (or similar) instead of
> 'cp' , cp will just kick and error and stop restoring on the first file it
> doesn't find.
Not in 9.1 (and later). Regular restore_command and set
standby_mode=on in recovery.conf is the easier way there.
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Albe Laurenz | 2012-02-22 08:33:58 | Re: ALTER DEFAULT PRIVILEGES target_role doesn't work with group roles |
Previous Message | Scott Mead | 2012-02-21 22:59:34 | Re: Why warm-standby doesn't work using file-based log shipping method? |