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 1ksTrH-0004j1-AN for pgsql-general@arkaria.postgresql.org; Thu, 24 Dec 2020 16:52: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 1ksTrE-0004gQ-Aj for pgsql-general@arkaria.postgresql.org; Thu, 24 Dec 2020 16:52:56 +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 1ksTrE-0004gB-2e for pgsql-general@lists.postgresql.org; Thu, 24 Dec 2020 16:52:56 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ksTr7-0002v6-Gh for pgsql-general@postgresql.org; Thu, 24 Dec 2020 16:52:54 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id A0F9F5C00A5; Thu, 24 Dec 2020 11:52:48 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 24 Dec 2020 11:52:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=O HpbbdnEyZWbNSk0NArgTcFGqvBOLVq+wN69ixMWqqM=; b=TLpdVpnOd2JHIYtjd xdg3D103QGJyThs511rc4GFJPgkMtVh8XQaDbO8JkHdb2Qn+f/WA1Xpet9uPmhlo DnVA1n5HPz3bpXtrn/0Q9CK2Gou8RjEakWl2HR8aL2uQtV1XOQGXqboRFNbzGFcd WAhG6e4QIzD0Vd0qP2qvYXE3p9n3Xp8G2yIjC4EHhxiP/verWBvJb5gjbeKJAxeZ +OeyF5aLJ4SuLod9Q3FDNGjwpY/79dQ+JcL7gd6AIiepuDjx3fa38F+brTJJnF04 YJXbk4iTRx3wSyyDcGMqJB1Ej56DzfyXphDI753DbC5nd8EByafRfJSKCqDPkQDJ PCu/Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; bh=OHpbbdnEyZWbNSk0NArgTcFGqvBOLVq+wN69ixMWq qM=; b=ZPm6jVsPaafOI/WieHW49fhx/j8UCwuBu3ev10nNLMZOwu5oxAeHfDnyv z2BpHdaD9R6g3wotMdZ8oENg19fpyKaWFgX2Ktj4i9pWbI1rGAqJ3AAADqHKieMO r1/Jl9S3XragltsuxXnatNVp4Flq7Bz18XfSIZfsNeYJ7xZPFbUANetPNoWMy/el IzmpPoyF2+rBRmvopwqjryiji4mBrx7QCy8bgj08teOKBNqgLjGJNvufSdfJz6b4 Z2elwVIV/F183Z0juaxdYw448aFf0Le8XvRyiRcpDKxelnvVycxlohZq28lQQ0T6 fGbdCRwlHqAeuufs6ivJE1tP1YaPQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddtledgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevveefveefueegffekkefhgeeiueffgfetueejvdfg hfeujeejhfekjeelgedtgeenucfkphepjeehrddujedvrddugedrudejnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.4] (75-172-14-17.tukw.qwest.net [75.172.14.17]) by mail.messagingengine.com (Postfix) with ESMTPA id BE5C7108005C; Thu, 24 Dec 2020 11:52:47 -0500 (EST) Subject: Re: Missing rows after migrating from postgres 11 to 12 with logical replication To: Lars Vonk Cc: pgsql-general@postgresql.org References: <4f884e1e-99fb-f29a-4ee6-f7c0fa039331@aklaver.com> <9f505de4-440d-f4c8-4f8a-70e7abd0ed00@aklaver.com> <5b0a4d0d-651e-dd4b-07c2-b66a3a0e68b3@aklaver.com> From: Adrian Klaver Message-ID: <916ca797-70a3-861f-b019-0d1f9a131b4a@aklaver.com> Date: Thu, 24 Dec 2020 08:52:47 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/23/20 1:40 AM, Lars Vonk wrote: > The full setup is: > > **Before: > 11 primary -> 11 hotstandby binary > > **During migration > 11 primary -> 11 hotstandby binary >   | -> 12 new instance via logical >           |-> 12 new replica via binary > > **After migration > 12 primary > |-> 12 replica via binary > > There are several moving parts here. I have to believe the problem is related. Just not sure how to figure it out after the fact. The best I can come up with is retry the process and monitor closely in real or near real time to see if you can catch the issue. Another option is to reduce the parts count by not running the binary 12 --> 12 replication at the same time you are doing the 11 --> 12 logical replication. -- Adrian Klaver adrian.klaver@aklaver.com