Re: questions about point in time recovery of the primary postgres Server

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pham lan <phamlankt(at)gmail(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: questions about point in time recovery of the primary postgres Server
Date: 2020-07-24 13:30:53
Message-ID: 20200724133053.GV12375@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Greetings,

* pham lan (phamlankt(at)gmail(dot)com) wrote:
> I am pretty new to Postgres and I have been reading about streaming
> replication and point in time recovery which is very interesting to me.
> What is not clear to me is: let's say I have a cluster of 1 primary and 2
> slaves Postgres 9.5 which have archive_mode on. Streaming replication is
> working fine. If for instance, i drop by mistake one table, and i need to
> do a restore to a point before the time the table was dropped, will I need
> to do the recovery only on the primary postgres server? How will the slaves
> behave during the recovery process of the primary?

The replicas will need to be rebuilt after the restore of the primary.

There's a few different ways to do that, but the fastest that I'm aware
of would be a pgbackrest delta restore of all the systems using an
appropriate backup set (which pgbackrest will figure out for you when
you tell it the time you want to restore to).

Thanks,

Stephen

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Wells Oliver 2020-07-24 17:02:18 Checking for valid UUID values?
Previous Message pham lan 2020-07-24 10:06:19 questions about point in time recovery of the primary postgres Server