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 1fzjAk-0001CW-Hm for pgsql-general@arkaria.postgresql.org; Tue, 11 Sep 2018 13:57:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fzjAh-0007IS-9z for pgsql-general@arkaria.postgresql.org; Tue, 11 Sep 2018 13:57:39 +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 1fzjAf-0007IK-Md for pgsql-general@lists.postgresql.org; Tue, 11 Sep 2018 13:57:39 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fzjAb-0005Bc-Qq for pgsql-general@lists.postgresql.org; Tue, 11 Sep 2018 13:57:36 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DB47921903; Tue, 11 Sep 2018 09:57:32 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 11 Sep 2018 09:57:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=ekd+0Z73xLTPjpEQIKuk0JJ9VkNTS 2ZqMgA3sROEAuk=; b=o+dp1tBNttb+DUab/Jy4eLpY8a263IEoSzuurXs3qQpp/ /NQY/Z0QGF6OIm8giH3JhwM8+GXUQziTksXOrAmpgj+sBXLjYNu0T3HjGVuSrdY4 coxTUJI4xcBMc1Nj626AfsaEtk9X/jUCvrSYL2f41xhsSSpEAo5cCoZcdrlv7M6y Sh7vg2YNAfBwoSUfA2xXZvUclq4S5cdm4JZpwJ8Fuh6a4B7LoTmPZTYjpMC0BAaz tLlPJQli8FkL/wr08Tnf/CGS+j+yaRYbAb7Frj9s2on6eMLkbe6ht0kEk5sgFunK RvKGPfd5on9Z3k8eeaQaj6LGqjhh52sogwwvB7Xgw== 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-sender:x-me-sender:x-sasl-enc; s=fm3; bh=ekd+0Z 73xLTPjpEQIKuk0JJ9VkNTS2ZqMgA3sROEAuk=; b=vA1W1E6nPzgDc26d8nyXfw DxAwOOAsBcJmZFfZgExV/ocVXNhDwKMtLZ2mXpr/fpYkXoV3Nluhi9cM/h+EHfAQ dJX+tFz5dh4VVtqUUIclZCHbj1qiWrAiyI6dW8N7Z8MXxWrSrZeH8ksZt9rHlrts 7Hf1JqQu1JKbddpLT0VB/Lgf5ApQD/Ht26h3u9Po2fp89SFiG7CHv1a5fP1hKfs1 vk07d7X3Eyw/GtzlbMix4or+NOdi00SjW75sIPLmqMjQ6CHL5HlbxFFgDYOB+Uih KWcS7UXEcqMSh9kTGw/zOCekxRGulNotBzy2Vqy/AB8VrW1KxG/nlZdIJrPiJ1gQ == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id CBE0E10298; Tue, 11 Sep 2018 09:57:31 -0400 (EDT) Subject: Re: PG8.3->10 migration data differences To: Csaba Ragasits , pgsql-general@lists.postgresql.org References: <20180910100040.wzglexkarz57w3ts@hjp.at> <07333286-2480-8750-c73d-d82e061b2bca@aklaver.com> From: Adrian Klaver Message-ID: Date: Tue, 11 Sep 2018 06:57:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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