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 1mg6yn-0005iQ-77 for pgsql-general@arkaria.postgresql.org; Thu, 28 Oct 2021 15:06:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mg6yl-0007xG-L8 for pgsql-general@arkaria.postgresql.org; Thu, 28 Oct 2021 15:06:07 +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 1mg6xu-0001zd-Lz for pgsql-general@lists.postgresql.org; Thu, 28 Oct 2021 15:05:15 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mg6xl-0007ek-Oz for pgsql-general@lists.postgresql.org; Thu, 28 Oct 2021 15:05:14 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 731215C0175; Thu, 28 Oct 2021 11:05:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 28 Oct 2021 11:05:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:mime-version:subject:to:references:from :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=K 1XDsLP0MSqfGCae0nd8GjdgE835wX7LstM+aR1QmcY=; b=K+x6ipqxhu346pVXs 2qy6dYEPsp32mY27vCCm3GWaqf6ct5y8KT/puDp3PnlHs2MHbPlQvKt5WV4mWQYc N3oCL6DQunisG9W38FK3jFKbH2XrJGvBWbsDlMXvdJQw5Rms/tqOT60LVy8G1jLt G3Wf/H/fhFQK6VFCGEAMtKeRzsV0DkrjLE0WcOumVhAQ9GSU/1l2DYTnGKGPtTK4 z3rlKaDZHeit6knfujdQsuVsw8ru1lXJn5qck1oyyXXS+ZqEC0btyQeeq8fKIxjG GxER6P6+mZd/RLxhw/IsEK5GRa2LYri+v2CskJbsNyk5lTZosw8NTV5bbjIgEanW 32PFw== 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=fm1; bh=K1XDsLP0MSqfGCae0nd8GjdgE835wX7LstM+aR1Qm cY=; b=ONHs6CrSVMKuA0fDwZKQltJ7tNYMQMmaeVju07AA1bqZKIU947pDzFUHg q1hiNYveHOM60Ex/eQFkefgHNzdDyaMd2jgJMjvByBHkF5tEtzu0uZB623hq6G1/ xo/rkNdHNoaMeOxceu/E7mR/OI3o/NfIo2zIxSPZ3t6VAxwKrxLZ+s+P3210qXog 8UXImciY50WCaNY9fT3gytYI83LWgGmCO2HID7JhXz7vF/FeTFZ5D6hcI0Cxveqh aVa/0dks3kGCB8YPvrtmH6wlN47e9zjObzJRuw3znrYYkVyLWNPn4rkVdTJVev2L s/N7EriOi1t3znFvktm6ortROupYQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdegvddgheelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepleekgeejhf ekteehfeduveetheeivdduheekudelteefvdffueehtddvgedtfeefnecuffhomhgrihhn pehpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgt ohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 28 Oct 2021 11:05:02 -0400 (EDT) Message-ID: <582efa86-107b-3c30-757e-bb1f6beb9efc@aklaver.com> Date: Thu, 28 Oct 2021 08:05:01 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: How to Resolve Data Being Truncated or Rounded Up During PostgreSQL Migration from v9.623 to v12.8? Content-Language: en-US To: "Hilbert, Karin" , "pgsql-general@lists.postgresql.org" References: 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 10/28/21 07:44, Hilbert, Karin wrote: > I manage aPostgreSQL databases - we currently have clusters on > *PostgreSQL v9.6.23* & **PostgreSQL v12.8**. > Our database clusters are on Linux VMs, with OS: >   Flavor:*redhat_7* >   Release: *3.10.0-1160.45.1.el7.x86_64* > > We have repmgr clusters of 1 Primary & 2 Standby servers & use another > server with PgBouncer to direct the connections to the current Primary. > > How can I ensure that the data was migrated correctly - that the data > hasn't been truncated or rounded up in the v12.8 tables? > Any help would be greatly appreciated. In postgresql.conf what are the settings for?: https://www.postgresql.org/docs/12/runtime-config-client.html extra_float_digits " Note The meaning of this parameter, and its default value, changed in PostgreSQL 12; see Section 8.1.3 for further discussion. " Section 8.1.3 https://www.postgresql.org/docs/12/datatype-numeric.html#DATATYPE-FLOAT > > Thanks, > > Karin Hilbert > -- Adrian Klaver adrian.klaver@aklaver.com