Re: questions about point in time recovery of the primary postgres Server - Mailing list pgsql-admin

From Stephen Frost
Subject Re: questions about point in time recovery of the primary postgres Server
Date
Msg-id 20200724133053.GV12375@tamriel.snowman.net
Whole thread Raw
In response to questions about point in time recovery of the primary postgres Server  (pham lan <phamlankt@gmail.com>)
List pgsql-admin
Greetings,

* pham lan (phamlankt@gmail.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

Attachment

pgsql-admin by date:

Previous
From: pham lan
Date:
Subject: questions about point in time recovery of the primary postgres Server
Next
From: Wells Oliver
Date:
Subject: Checking for valid UUID values?