Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lBzcQ-0004Op-EC for pgsql-general@arkaria.postgresql.org; Tue, 16 Feb 2021 12:38:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lBzcO-0007Sh-Ak for pgsql-general@arkaria.postgresql.org; Tue, 16 Feb 2021 12:38:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lBzcN-0007SZ-U8 for pgsql-general@lists.postgresql.org; Tue, 16 Feb 2021 12:38:16 +0000 Received: from mail1.dalibo.net ([212.83.143.11] helo=mail.dalibo.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lBzcL-0008WH-8g for pgsql-general@postgresql.org; Tue, 16 Feb 2021 12:38:14 +0000 Received: from firost (larco.ioguix.net [82.66.0.6]) by mail.dalibo.com (Postfix) with ESMTPSA id 75D971FD58; Tue, 16 Feb 2021 13:38:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1613479089; bh=yaBeOm3jnOFw0rAz2vaJcxzROKHiZcBO8A8hzl3ogIw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hYPdcreV/+fKURt8hV9SrO7UD8C8e+6jiIDTafzaN+HoeFjsS+SJ0DvcfFrnsuKrp +2gxayfvbm0Qhzsyt8i4569hoOaJPSxbBeQ8YHwhXs2W//wTcJ2kBpaFBGqaB2g6A2 kfkixL6GDq4aeewWtHFh56SguWZkKGIvzXf4oVgo= Date: Tue, 16 Feb 2021 13:38:08 +0100 From: Jehan-Guillaume de Rorthais To: Paolo Saudin Cc: PostgreSQL Subject: Re: Replication sequence Message-ID: <20210216133808.5d4a15c0@firost> In-Reply-To: References: <20210216105145.03b5943b@firost> Organization: Dalibo MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, 16 Feb 2021 13:10:54 +0100 Paolo Saudin 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.