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 1fziCh-0006kH-D0 for pgsql-general@arkaria.postgresql.org; Tue, 11 Sep 2018 12:55:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fziCe-0007ug-9Z for pgsql-general@arkaria.postgresql.org; Tue, 11 Sep 2018 12:55:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fziCd-0007uZ-W5 for pgsql-general@lists.postgresql.org; Tue, 11 Sep 2018 12:55:36 +0000 Received: from mail-oi0-x241.google.com ([2607:f8b0:4003:c06::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fziCV-0000WF-Iq for pgsql-general@lists.postgresql.org; Tue, 11 Sep 2018 12:55:34 +0000 Received: by mail-oi0-x241.google.com with SMTP id l202-v6so46858026oig.7 for ; Tue, 11 Sep 2018 05:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=GcfWHzYn6tQlg9VmHxpmstWUXbyfgpaF4BWX9olUvtY=; b=HUCqzrumcZOpQpEWA6wHKdG4jvASZSktEmDzUB38z+Dqp1S3MTLWVpjvLLWG/boqaR QZyEeFQqYrIPJ7cViMLN7RgQYwaAvR85S8+rOcq9xgZN1ZUUHZ3e/o2jazPLZr3uKQ1d ovV+qwGgXHjsXsry+wmfhEW3wjn8I797CS4K4pgSm6hI283tILBJlalLPDoBqnWJ4kmq qHUIga/7vGRxmW9ooth6QDkeCwQCnrSrZuNUyV6cwvCILTGulmaoyMVTEBNUb2LJlKR9 +m3P8vb6Pukm2SmuZf7yLKlGxVSrux0djFVQGuJQ3TglVlwtUxIRX/+L4mbOskFOubt/ FJ9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=GcfWHzYn6tQlg9VmHxpmstWUXbyfgpaF4BWX9olUvtY=; b=jlsUW9yfcumFUAxtiy4NhM8ca890coSX5I+D9yONWGBSNm/U05p4/BDmOUJ1PNtZ8W O3QUNrWnJm0omOdsRYjER6NeEuPd86pnYKMbQJrEjagtz7m9eZdY5yOr3/evwHXBU81g kIcp+K6LYO8GC8gc9nf40Ko5ffY5nWf1D7JUB9FMovfxWbhxL7AHMkMiXo56etyDzHH/ I32XcVYB8/aN/fYI9WWzkyO63E1f/mkOiyRZAwjDL+WGEQzETZEfS40VzRE0yccKctyk hY/HxwccAPWkzITtBwCh82/mhZ/slBRevMawOkBMEFEQpbnfblg7YqshWt55ujCvjF2p jmIA== X-Gm-Message-State: APzg51BM+dXS4LrD2txWvPZu31zBHNMUyTT9mVNkV2LgeNQBprA3fH/6 2hxwm0jN2kiFzaL7TksmTMf3MZQB X-Google-Smtp-Source: ANB0VdbsrnYvcARJ87H5jbGfCY4rjo+SRT7cDqiMISVPPit12l803Y08Fia9DJuGZlt2VONk1Zllwg== X-Received: by 2002:aca:3c02:: with SMTP id j2-v6mr27668432oia.50.1536670525045; Tue, 11 Sep 2018 05:55:25 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id e7-v6sm11440747oii.26.2018.09.11.05.55.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Sep 2018 05:55:24 -0700 (PDT) Subject: Re: PG8.3->10 migration data differences To: pgsql-general@lists.postgresql.org References: <20180910100040.wzglexkarz57w3ts@hjp.at> <07333286-2480-8750-c73d-d82e061b2bca@aklaver.com> From: Ron Message-ID: <010e2c1c-c169-7a36-c313-f11db9191b81@gmail.com> Date: Tue, 11 Sep 2018 07:55:22 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Then fix your field-based data comparing mechanism. On 09/11/2018 03: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 > > 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. > > thx, > Csaba -- Angular momentum makes the world go 'round.