From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Csaba Ragasits <ragasits.csaba@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: PG8.3->10 migration data differences
Date: Tue, 11 Sep 2018 06:57:30 -0700
Message-ID: <d0f34873-c63c-6484-38bf-1fc707c19aaf@aklaver.com> (raw)
In-Reply-To: <CANaXbVgqVoSMB90KMJEL0mK0wuKTgp6x7_HPMp+bzT5XKx3Pzg@mail.gmail.com>
References: <CANaXbVjw3Y8VmapWuZahtcRhpE61hsSUcjquip3HuXeuN8y4sg@mail.gmail.com>
<b7e21ca6-c795-2cda-4873-ae8cd80383a8@matrix.gatewaynet.com>
<20180910100040.wzglexkarz57w3ts@hjp.at>
<CANaXbVjbqvvFUGWpZwTdghxEW82GBLwQxFUKopmRBdnrAvDe_Q@mail.gmail.com>
<07333286-2480-8750-c73d-d82e061b2bca@aklaver.com>
<CANaXbVgqVoSMB90KMJEL0mK0wuKTgp6x7_HPMp+bzT5XKx3Pzg@mail.gmail.com>
On 9/11/18 1:41 AM, Csaba Ragasits wrote:
> Hello,
>
> We would like to migrate from 8.3 to 10 version. We've hundreds
> databases with different structures. That reason we're working on an
> automatic data comparing process.
>
> I've found the following storage settings:
> - pg83: Date/time type storage: 64-bit integers
> - pg10: Date/time type storage: 64-bit integers
>
> When I running the following select from psql (Select '09/10/18
> 07:10:25.110'::timestamp;)
> The results are same:
> -pg83: 2018-09-10 07:10:25.11
> -pg10: 2018-09-10 07:10:25.11
>
> When I select it from a table (Select v.entry_timestamp from t_vis v):
> The results are different:
> - pg83: 2015-08-28 21:25:07.70
> - pg10: 2015-08-28 21:25:07.7
Actually the result is the same:
select '2015-08-28 21:25:07.70'::timestamp = '2015-08-28
21:25:07.7'::timestamp;
?column?
----------
t
The formatting is different.
>
> The field type:
> entry_timestamp TIMESTAMP WITHOUT TIME ZONE NOT NULL,
>
> Our difference every time the last 0 values. The time values are same,
> but our field based data comparing mechanism every time mark it as error.
As Ron stated it should not.
>
> thx,
> Csaba
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, ragasits.csaba@gmail.com
Subject: Re: PG8.3->10 migration data differences
In-Reply-To: <d0f34873-c63c-6484-38bf-1fc707c19aaf@aklaver.com>
References: <CANaXbVjw3Y8VmapWuZahtcRhpE61hsSUcjquip3HuXeuN8y4sg@mail.gmail.com> <b7e21ca6-c795-2cda-4873-ae8cd80383a8@matrix.gatewaynet.com> <20180910100040.wzglexkarz57w3ts@hjp.at> <CANaXbVjbqvvFUGWpZwTdghxEW82GBLwQxFUKopmRBdnrAvDe_Q@mail.gmail.com> <07333286-2480-8750-c73d-d82e061b2bca@aklaver.com> <CANaXbVgqVoSMB90KMJEL0mK0wuKTgp6x7_HPMp+bzT5XKx3Pzg@mail.gmail.com> <d0f34873-c63c-6484-38bf-1fc707c19aaf@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox