Search Postgresql Archives

Re: Backup strategy using 'wal_keep_segments'

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

 



Thanks very much for your reply Michael.

I note that it looks like pgbarman employs pg_receivexlog; I will check it out. 


Regards,

Ruan


From: Michael Paquier <michael.paquier@xxxxxxxxx>
Sent: 22 October 2017 22:17:01
To: Rhhh Lin
Cc: pgsql-general@xxxxxxxxxxxxxx
Subject: Re: Backup strategy using 'wal_keep_segments'
 
On Mon, Oct 23, 2017 at 5:57 AM, Rhhh Lin <ruanlinehan@xxxxxxxxxxx> wrote:
> Is this approach feasible? Assuming obviously, we have sufficient disk space
> to facilitate 1000 WAL files etc.

You expose yourself to race conditions with such methods if a
checkpoint has the bad idea to recycle past segments that your logic
is copying. So I would advise to not do that. Instead of using the
archive command, you should also consider using pg_receivexlog
combined with a replication slot. This brings way more control with
the error handling.
--
Michael

[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