Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1taGaK-000Gy5-N6 for pgsql-general@arkaria.postgresql.org; Tue, 21 Jan 2025 15:54:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1taGaJ-000nPR-MW for pgsql-general@arkaria.postgresql.org; Tue, 21 Jan 2025 15:54:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1taGaI-000nPG-Cy for pgsql-general@lists.postgresql.org; Tue, 21 Jan 2025 15:54:35 +0000 Received: from fout-b2-smtp.messagingengine.com ([202.12.124.145]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1taGaF-000kqG-2o for pgsql-general@lists.postgresql.org; Tue, 21 Jan 2025 15:54:33 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfout.stl.internal (Postfix) with ESMTP id 3358D1140100; Tue, 21 Jan 2025 10:54:31 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Tue, 21 Jan 2025 10:54:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1737474871; x=1737561271; bh=1QL/fPJYyo8PFsXHCfgRk5bwca6LIfBxQgYGXx5NFbo=; b= p+bfImVK3u59SpE38g7OJTFyowLdqwTXdZfLzR9gknVSKxsaL/IrPIwUfEscfk9v Xlwfdxv+NOWLJ9eP2kmZG0plyq04F81TnS4vcb/PwPruHu4X/mZSKrpRw7GmU5zS Twed1BVnLAvJckjDKKlaFEzZcEZskzjt/woViO6q5aGT3Z1zOZGsCtT4nvLzkPls 26UaXd3APexpkk9P3qvtmqH97TWnPZZ4eYTpVZ06+T6s8u0f6AdPGYaLcuAveyni dBxbHzJgdNFxzCzbckx72sB3OMMlxQGQQ0NN/C7pJ7v3notI6e21+qKlHFIzVnKy M0CHtrfJy2xxNhYq1R6PJQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1737474871; x=1737561271; bh=1 QL/fPJYyo8PFsXHCfgRk5bwca6LIfBxQgYGXx5NFbo=; b=Kj+LQsIOPE0HZhKU7 M3ME+z44hIGhvtQtJiaPwFgnG+2PlfHmQ1kYa3/r8vPyM4o+/mUiZ7wNjTGGLE/R CN1O+2nNvtNi1gjCnpmM3JWTTdJcFQAd6RhZmLEFdh7IfC6pi6JReYW9Qx+W9/mM UmUEkow1s6cKlqyFKnDJ3nUor87Ymp8zx6Gs57SdI6rl6C6sTUIONxlda3AhOGb9 flBVMOPL3MWYqaKBm9rkNEOI8B3vFtsmmKC7q+ixpz0azeb+lXcjHz9raamw2Ype dT1iCzXRf+gYnNz860AKJif9D4CtuWWd60Jz2O51hl5n4I26PWqo1DmYiif9H4VJ t5omg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejvddghedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfg fuvfhfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghr uceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrth htvghrnhepffelgeeifefgveduhedthfekuedtffejveegffegjeevtdehgfduieetfeeh jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg gurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohep vddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepmhgrhhgvshhhphhoshhtghhrvg hsleesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehl ihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 21 Jan 2025 10:54:30 -0500 (EST) Message-ID: Date: Tue, 21 Jan 2025 07:54:29 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Records count mismatch with logical replication To: Durgamahesh Manne , pgsql-general References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/21/25 04:08, Durgamahesh Manne wrote: > Hi  Team, > > I have publication and subscription servers .So seems data replication > running with minimal lag but records count mismatch with more than 10 > thousand records between source and destination tables > > Could you please help in resolving this issue? Not without a good deal more information: 1) Postgres version on either side of the replication. 2) The replication configuration. 3) Define how lag is being calculated and what 'minimal' is. 4) Define how the record counts are being derived. 5) The network distance between the servers. > > Regards, > Durga Mahesh > > > -- Adrian Klaver adrian.klaver@aklaver.com