Re: Replication sequence - Mailing list pgsql-general

From Jehan-Guillaume de Rorthais
Subject Re: Replication sequence
Date
Msg-id 20210216133808.5d4a15c0@firost
Whole thread Raw
In response to Re: Replication sequence  (Paolo Saudin <paolosaudin@gmail.com>)
Responses Re: Replication sequence
List pgsql-general
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: Paolo Saudin
Date:
Subject: Re: Replication sequence
Next
From: Mutuku Ndeti
Date:
Subject: PostgreSQL Replication