pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
To: Paolo Saudin <paolosaudin@gmail.com>
Cc: PostgreSQL <pgsql-general@postgresql.org>
Subject: Re: Replication sequence
Date: Tue, 16 Feb 2021 13:38:08 +0100
Message-ID: <20210216133808.5d4a15c0@firost> (raw)
In-Reply-To: <CADtZQgmtt4=+sPo_SbH5wr-LpavHgpbS78fNpxMLi8DU2kp8Fg@mail.gmail.com>
References: <CADtZQgnz9AvzigpeSBAyT53TrZRF42DqZVN7SscpN2DMkJDTYQ@mail.gmail.com>
	<20210216105145.03b5943b@firost>
	<CADtZQgmtt4=+sPo_SbH5wr-LpavHgpbS78fNpxMLi8DU2kp8Fg@mail.gmail.com>

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.





view thread (7+ messages)  latest in thread

Message-ID: <20210216133808.5d4a15c0@firost>
Permalink:  ../20210216133808.5d4a15c0@firost/
Also on:    postgresql.org/message-id/20210216133808.5d4a15c0@firost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: jgdr@dalibo.com, paolosaudin@gmail.com
  Subject: Re: Replication sequence
  In-Reply-To: <20210216133808.5d4a15c0@firost>
  References: <CADtZQgnz9AvzigpeSBAyT53TrZRF42DqZVN7SscpN2DMkJDTYQ@mail.gmail.com> <20210216105145.03b5943b@firost> <CADtZQgmtt4=+sPo_SbH5wr-LpavHgpbS78fNpxMLi8DU2kp8Fg@mail.gmail.com> <20210216133808.5d4a15c0@firost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox