PITR based recovery in a primary/standby cluster setup - Mailing list pgsql-general

From Abhijit Gharami
Subject PITR based recovery in a primary/standby cluster setup
Date
Msg-id CAA5_DuBNyGuF7rFW+Me=VewfhQokTqsbdwds=hC_4Pqrgo6iqQ@mail.gmail.com
Whole thread Raw
Responses Re: PITR based recovery in a primary/standby cluster setup
List pgsql-general
Hi,

We have primary and standby PostgreSQL cluster setup and also we have PITR enabled on it. To improve the recovery time we are thinking of recovering the database to both primary and standby at the same time.

These are the steps we are following:
  1. Restore the base backup to the both primary and standby server 
  2. Replay the WAL files on both primary and standby and once the recovery target is reached stop the servers 
  3. Start one of the server as Primary and other one as standby


We have followed the above steps but when we are trying to start the servers as primary and standby we are having replication issues.

Could you please suggest what should be done here so that we can recover the database in both primary as well as in  standby server?

We are using PostgrerSQL version: 9.6.12 and for PITR we are using WAL-E.

Regards,
Abhijit

pgsql-general by date:

Previous
From: Ron
Date:
Subject: Re: Loading table with indexed jsonb field is stalling
Next
From: Daulat Ram
Date:
Subject: no matching entries in passwd file