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 1qdwrD-005GWw-58 for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Sep 2023 18:02:27 +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 1qdwrB-00CDss-Rn for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Sep 2023 18:02:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qdwrB-00CDsi-If for pgsql-bugs@lists.postgresql.org; Wed, 06 Sep 2023 18:02:25 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qdwr7-003ScC-7d for pgsql-bugs@lists.postgresql.org; Wed, 06 Sep 2023 18:02:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description; bh=PI2wD07DnDIqLcj724e2FX4MQP00FfIsRPvH5qANlhE=; b=ZWmt+2phR+R3RV7765QX/R3sHB OEchdfd+fU0BKDyr3XLjjjE0/XYhJH8hEt2nYDAiysfveHb13Dc0Jy9b1EFH3nUtglAyR9c77uyzf tGxPWQYf8YRaFYi1I2ZSPV0EoNVjivSc1nArtEsOvjS2HaiGJJMm5uijrgChwT8WStw5HL+RkHN7m 5wh7ftC6npPgqq/XX2apcE9IpmyrHyJRyoDPwU4rExYshwbBTFyGsGBhRM6QXGouSbOdUJrh+iMuP fF34Uys6VdReTl+YWNJjwr5eZR/wZGSKAQcABRGY9GRj9svuElZkNnmhIc3AoxWq7A78/hwo7euvR 81KkCeHg==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1qdwr5-002sMg-2T; Wed, 06 Sep 2023 14:02:19 -0400 Date: Wed, 6 Sep 2023 14:02:19 -0400 From: Bruce Momjian To: Git Queries Cc: 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Sep 6, 2023 at 11:11:05PM +0530, Git Queries wrote: > > And how did you perform this migration?  pg_dump, pg_upgrade, logical > > replication? > > Migration was performed using pg_dump. Uh, that is kind of a surprise since pg_dump/restore does a logical dump --- none of the binary files are transfered, so it should always be accurate. --------------------------------------------------------------------------- > > On Tue, Sep 5, 2023 at 8:48 PM Bruce Momjian wrote: > > 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. > -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you.