Re: Replication sequence - Mailing list pgsql-general

From Paolo Saudin
Subject Re: Replication sequence
Date
Msg-id CADtZQgnra2OUtMR9Q=mT_3obtySvbF63741s8Rk6P=ce+s7ypA@mail.gmail.com
Whole thread Raw
In response to Re: Replication sequence  (Jehan-Guillaume de Rorthais <jgdr@dalibo.com>)
List pgsql-general
Thank you!

Il giorno mar 16 feb 2021 alle ore 13:38 Jehan-Guillaume de Rorthais <jgdr@dalibo.com> ha scritto:
On Tue, 16 Feb 2021 13:10:54 +0100
Paolo Saudin <paolosaudin@gmail.com> wrote:

> Il giorno mar 16 feb 2021 alle ore 10:51 Jehan-Guillaume de Rorthais <
>  [...] 
>
>  [...] 
>  [...] 
>  [...] 
>  [...] 
>  [...] 
>  [...] 
>  [...] 
>
> Thank you very much!
> So in case the primary server crashes, and the backup one gets live, it
> will eventually have different sequences.

No. You will just have a gap in the sequence, on both side.

And if you decided to promote your standby to production, you'll have to resync
the old primary anyway.

> I suppose there is no way to
> avoid this, isnt'it?

You can't avoid gap.


pgsql-general by date:

Previous
From: Mutuku Ndeti
Date:
Subject: PostgreSQL Replication
Next
From: Raul Giucich
Date:
Subject: Re: PostgreSQL Replication