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 1qdXpX-003qfY-Qd for pgsql-bugs@arkaria.postgresql.org; Tue, 05 Sep 2023 15:19:03 +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 1qdXpW-002uAv-82 for pgsql-bugs@arkaria.postgresql.org; Tue, 05 Sep 2023 15:19:02 +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 1qdXpV-002uAg-V4 for pgsql-bugs@lists.postgresql.org; Tue, 05 Sep 2023 15:19:01 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qdXpO-002tLg-30 for pgsql-bugs@lists.postgresql.org; Tue, 05 Sep 2023 15:19:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description; bh=UXefJUDd3Y6n4X+71tAaFsblBHqLPuFSybADtZpq6+k=; b=C06Ct T+FW5kYd7xB/zpVxLde70vsYRvcIB1kFpcyni+GDD4BM9InJdtxpwTFlzSibvmaDbmPAb6UpqPTsM cTVLU8gfXf4YSLXPufPaZTF+Ah45IcsAC8i6txBhNlShjxF5HftbccKYL8nqkkctE4DsfxCOYsXNa x0wmLM4uCa15wLV+R4qP+erVliQqbZvTI9xdqb3JqIrY78BR36oE8nXthZmHxJC3nb+3CchhnF9z6 q3SmY7naLjBxTCtNn/sQQB3WSJE2alX8N+p4Lax62isrOzdXGhd/KymPDVCK1m4XE7Wjj7kKMO9H8 128kUGx8QY8b+LbBOjB67DKw1wf6g==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1qdXpM-00Fj32-2x; Tue, 05 Sep 2023 11:18:52 -0400 Date: Tue, 5 Sep 2023 11:18:52 -0400 From: Bruce Momjian To: gitqueries0@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18084: Count Mismatch Challenges During PostgreSQL Database Migration: Causes and Solutions Message-ID: References: <18084-f96f8e0e21fc3bea@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18084-f96f8e0e21fc3bea@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Sep 4, 2023 at 05:55:51PM +0000, PG Bug reporting form wrote: > The following bug has been logged on the website: > > Bug reference: 18084 > Logged by: Git Queries > Email address: gitqueries0@gmail.com > PostgreSQL version: Unsupported/Unknown > Operating system: Microsoft Windows Server 2019 Standard > Description: > > Version - PostgreSQL 10.20, compiled by Visual C++ build 1800, 64-bit > > Platform - Windows > > Regarding PostgreSQL, during the migration from PG 10.20 to 14.7, we will > perform a sanity check on the migrated tables using source and destination > row counts. Occasionally, we encounter count mismatches where the source > database has fewer rows, resulting in a higher count, or more rows, > resulting in a lower count. > > Note: There are no migration issues, as all data rows have been successfully > migrated without data loss. And how did you perform this migration? pg_dump, pg_upgrade, logical replication? -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.