Re: postgres replication without pg_basebackup? postgres 13.3

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Pilar de Teodoro <pilar(dot)deteodoro(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: postgres replication without pg_basebackup? postgres 13.3
Date: 2022-11-07 11:21:10
Message-ID: 682616b88f9e6bd7a745d74580833254879ce550.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 2022-11-07 at 11:02 +0100, Pilar de Teodoro wrote:
> We have a very large database of 37TB and we had to promote our standby to primary due to
> some disk failures. Now the issues are solved, we would like to make standby  the old primary
> from a copy of the new primary which is already in place.  Is it possible without using pg_basebackup?

That's exactly what "pg_rewind" is for. It is a fast version of "pg_basebackup" for exactly
that case.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mladen Gogala 2022-11-07 13:17:10 Re: server process (PID 2964738) was terminated by signal 11: Segmentation fault
Previous Message Laurenz Albe 2022-11-07 11:19:35 Re: server process (PID 2964738) was terminated by signal 11: Segmentation fault