From: | Christopher Pereira <kripper(at)imatronix(dot)cl> |
---|---|
To: | Stephen Frost <sfrost(at)snowman(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: pg_basebackup + incremental base backups |
Date: | 2020-05-26 03:59:43 |
Message-ID: | 6c18a547-f2f3-74b7-32ad-f44cfaef10e3@imatronix.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 24-May-20 15:48, Stephen Frost wrote:
> That really shouldn't be possible. I'm very curious as to exactly what
> happened that resulted in your primary/replica being 'out of sync', as
> you say.
Hi Stephen,
Actually this was more a hypothetical question to find a solution in
case some day one of our standby clusters goes out of sync and we have
to rebuild it having a very big database.
With proper WAL archiving this shouldn't happen but we wanted to be
prepared for this scenario just in case.
We did some tests measuring IO and traffic and are very happy with the
results. We will definitely be adding pgBackRest to our toolchain.
Regarding my initial question, I still believe that the world deserves a
simple direct pg_basebackup replacement even when putting an additional
"repo host" in the middle is a better idea in the long term.
As you said, all the pieces are there and it would be quite easy to
write a new "pg_basebackup_delta" script that could be executed on the
standby host to:
1) setup a pgBackRest repo on the primary host (via SSH)
2) create a backup on the primary host (via SSH)
3) do a delta restore on the standby
Even when the repository on the primary host is only created temporarily
(and require double storage, resources, etc), it may still be worth
considering the traffic that can be saved by doing a delta restore on a
standby host in a different region, right?
Thanks and congratulations for the good work.
From | Date | Subject | |
---|---|---|---|
Next Message | Frank Millman | 2020-05-26 07:22:49 | Slow SELECT |
Previous Message | Charles Clavadetscher | 2020-05-25 17:02:49 | Re: FDW and RLS |