Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fzI1A-0006kH-3j for pgsql-general@arkaria.postgresql.org; Mon, 10 Sep 2018 08:58:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fzI17-0003ge-J4 for pgsql-general@arkaria.postgresql.org; Mon, 10 Sep 2018 08:57:57 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fzI17-0003gX-2K for pgsql-general@lists.postgresql.org; Mon, 10 Sep 2018 08:57:57 +0000 Received: from hermes.gatewaynet.com ([193.92.121.98]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fzI12-0007jm-GQ for pgsql-general@lists.postgresql.org; Mon, 10 Sep 2018 08:57:55 +0000 Received: from smadev.internal.net (pc131.internal.net [10.9.200.131]) by hermes.gatewaynet.com (8.14.3/8.14.3/Debian-9.4) with ESMTP id w8A8vgm8002678 for ; Mon, 10 Sep 2018 11:57:47 +0300 Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id w8A8vgIl008784 for ; Mon, 10 Sep 2018 11:57:42 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: PG8.3->10 migration data differences To: pgsql-general@lists.postgresql.org References: From: Achilleas Mantzios Message-ID: Date: Mon, 10 Sep 2018 11:57:42 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------BB9DB2F27B43BB629D4777BD" Content-Language: en-US X-Virus-Scanned: clamav-milter 0.98.7 at hermes X-Virus-Status: Clean X-Spam-Status: No, score=-28.0 required=5.0 tests=ALL_TRUSTED,DYN_HAM_COORD, DYN_HAM_IT,DYN_HAM_NAUTICAL,HTML_MESSAGE autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on hermes.gatewaynet.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------BB9DB2F27B43BB629D4777BD Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 10/09/2018 11:22, Csaba Ragasits wrote: > Hello, > > We would like to migrate our old databases to new postgres server, with the simple backup-restore process. The process run fine without errors but when we're  checking the source and the migrated > datas as field level, we found the following differences: > > For example: > > Field type: TIMESTAMP WITHOUT TIME ZONE NOT NULL > pg93: 2015-08-28 21:25:07.70 > pg10: 2015-08-28 21:25:07.7 Those two are absolutely the same value. 7/10 = 70/100 > > Field type: REAL > pg93: 2.2 > pg10: 2.20000005 > Those have to do with rounding. Precision for real is 6 decimal digits. Your difference is on the 8-th digit. > When I check the 8.3 pg_dump file, it contains the pg83 correct values. > > Do you have any ideas, why different this values? > > Thx, > Csaba > > -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt --------------BB9DB2F27B43BB629D4777BD Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 10/09/2018 11:22, Csaba Ragasits wrote:
Hello,

We would like to migrate our old databases to new postgres server, with the simple backup-restore process. The process run fine without errors but when we're  checking the source and the migrated datas as field level, we found the following differences:

For example:

Field type: TIMESTAMP WITHOUT TIME ZONE NOT NULL
pg93: 2015-08-28 21:25:07.70
pg10: 2015-08-28 21:25:07.7
Those two are absolutely the same value. 7/10 = 70/100

Field type: REAL
pg93: 2.2
pg10: 2.20000005

Those have to do with rounding. Precision for real is 6 decimal digits. Your difference is on the 8-th digit.
When I check the 8.3 pg_dump file, it contains the pg83 correct values.

Do you have any ideas, why different this values?

Thx,
Csaba



-- 
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
--------------BB9DB2F27B43BB629D4777BD--