Re: psql 8 warm standby strong start, weak finish

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Charlton Galvarino <charlton(at)2creek(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: psql 8 warm standby strong start, weak finish
Date: 2015-04-30 14:40:26
Message-ID: 55423EDA.10007@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 04/30/2015 07:22 AM, Charlton Galvarino wrote:
>> So where does the rsync you mentioned previously fit into this?
>
> A cron runs on warm_standby to pull (and delete) the WAL's from the master.
>
> rsync -avz --progress --remove-sent-files master:/var/lib/pgsql/archives/ /var/lib/pgsql/archives/

Hmm, in newer versions of rsync --remove-sent-files has been replaced
by --remove-source-files, so I cannot test. Some searching found that
--remove-sent-files will move/delete unfinished files. I would say that
the above cron command is dangerous. To test, comment out the command
and let the archiving run. Postgres will recycle WALs on its own when
they are no longer needed. Or is there is some compelling reason you
want to get rid of WALs?

>
>> I do not see an -l option in the 8.4.x version of pg_standby, I do see it in the
>> 8.3 version.
>
> I agree. pg_standby --help says exactly that.
>
> -l does nothing; use of link is now deprecated

Aah, so it is just noise.

>
>> Where are you getting pg_standby from?
>
> -bash-3.2$ which pg_standby
> /usr/bin/pg_standby
>
> -bash-3.2$ pg_standby --version
> pg_standby (PostgreSQL) 8.4.17
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Charlton Galvarino 2015-04-30 14:42:14 Re: psql 8 warm standby strong start, weak finish
Previous Message Charlton Galvarino 2015-04-30 14:22:05 Re: psql 8 warm standby strong start, weak finish