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 1jZZVP-0004bx-HL for pgsql-general@arkaria.postgresql.org; Fri, 15 May 2020 12:31:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZZVO-0002Yv-Dk for pgsql-general@arkaria.postgresql.org; Fri, 15 May 2020 12:31:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZZVO-0002X0-5q for pgsql-general@lists.postgresql.org; Fri, 15 May 2020 12:31:58 +0000 Received: from forward4-smtp.messagingengine.com ([66.111.4.238]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZZVK-0003yD-Id for pgsql-general@lists.postgresql.org; Fri, 15 May 2020 12:31:57 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 400971940BBE; Fri, 15 May 2020 08:31:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 15 May 2020 08:31:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=+26dppiDpuiVTFluzscZyP0YCl9Gzxhgnder2xOil EE=; b=FxoNhnm0qAnfpILTxA3PO4Jz75yoQWhhekCvO0cHLR1+kEuefbJmTiUcI cFBZ+RBqMTDy+R30tae008qt8dK9cOeogjNrZw9OxKQH1f1JlUTm/Rgm+ojM/tXL AOSUl0vnVHmcMKzEjmdDkqObqt8mtGAZKkTxyr3OjuJqt3+AbSZ5T6IgH/177eIb pv1R6nkHAm3ztk0AciG+ngVROCzwYdP4dcpVmq907y8wJHaV77xoDI25NSDZmox+ s1oACCuaH2w8Ixhjaa3zFrRTmlYVFKvxUTHWvp1FOqlJIAF4lA9vjTBf6aFAMABt Veaud/56g5evg3Gt9MssZGyIYNrTg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrleekgdehudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhohfkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghr rdgvihhsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomheqnecuggftrfgrth htvghrnheptdevgeehtdejvdevvdeljeeuveejjedtleelgfekleefieekjeelgfektddu uedvnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgtohhmnecukfhppeelfedrvd egfedrkedvrddvgeeinecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghi lhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrd gtohhm X-ME-Proxy: Received: from april.pezone.net (p5df352f6.dip0.t-ipconnect.de [93.243.82.246]) by mail.messagingengine.com (Postfix) with ESMTPA id 656CC3280063; Fri, 15 May 2020 08:31:51 -0400 (EDT) Subject: Re: Seamless Logical Replication during Fail-over To: Moor Ali , pgsql-general@lists.postgresql.org References: From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Fri, 15 May 2020 14:31:50 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-05-15 12:05, Moor Ali wrote: > Is there any way to continue logical replication (either in-built or > using pglogical) between a promoted replica and existing subscribers > without data loss? > > I could find some discussions about fail-over slots and other mechanisms > for addressing this as part of PostgreSQL 9.6 release. But I am not sure > if these changes made it to any of the releases. You are right that the fail-over slot mechanism was supposed to address this but it never made it into a release. I'm not aware of an open-source solution for this right now. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services