Search Postgresql Archives

Re: %r in restore_command?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Duco Fijma wrote:

> Please allow me to rephrase a question I asked on this list some time  
> ago. Could somebody shine some light on what exactly influences the  
> value of the %r parameter in the restore_command (as used in  
> recovery.conf)? I'm using this in a hot-standby-configuration in  
> combination with pg_standby and _sometimes_ my archive on shipped  
> transaction logs grow really huge. The value of %r then never changes  
> any more in subsequent calls of the restore_command, causing pg_standby  
> to not delete any WAL segment anymore.

AFAIR %r is supposed to mean "the earliest segment that can safely be
removed"(*).  If there's a lot of backlog then perhaps the recovery
process has stopped replaying WAL segments for some reason.  Is there
anything unusual in the slave logs?

(*) I *think* the technical definition is "segment previous to the one
on which the last restartpoint was set", or something similar.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux