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 1fj6jB-0003Do-05 for pgsql-bugs@arkaria.postgresql.org; Fri, 27 Jul 2018 17:40:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fj6j8-0005Na-T6 for pgsql-bugs@arkaria.postgresql.org; Fri, 27 Jul 2018 17:40:30 +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 1fj6j8-0005NT-JK for pgsql-bugs@lists.postgresql.org; Fri, 27 Jul 2018 17:40:30 +0000 Received: from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fj6j4-0006rY-Vi for pgsql-bugs@lists.postgresql.org; Fri, 27 Jul 2018 17:40:30 +0000 Received: by mail-qt0-x241.google.com with SMTP id m13-v6so5869130qth.1 for ; Fri, 27 Jul 2018 10:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=q+bCRRLntyNi80H1hYDPQRUnIObzeLdMA3+m9q0qrtQ=; b=W9hjmYjawftQNUU+ENfbZGg5c9D3peKPEhUa/QuqdXxeIbP1Xvc3ouHHGqKltWcuwz pXPwrcKfhd8D5YPmI6xYiWP8/PSjFl9tf+gtd6Q2tJKZK9Ul8IxipW6IJPko/7fzgyue OX9eBf7kFWmSFg/C2+Hw3LulpO9x9ByOv/PjS5HZ/QI+4YwR4lKwxtNgFvUDkaUWdITx xaG+sIUYeOhIkk/Sw1bjTZ6pF529neMEsOZ1tectaPZ/cZ0RA7/DKIsGw0VMQCRxkXtA XKZJ3cl5zNbn3mZHHdeykdhabdG1VkS4p838/SMXNzFI54kLM54lu7+15o79UCtm8DGD iy2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=q+bCRRLntyNi80H1hYDPQRUnIObzeLdMA3+m9q0qrtQ=; b=OCjgslFJkvYiwN9XkDToAduHlehc/T+FFzh1bTNx95m47ACXbb87XiCD75bZldeP2K QrurvIOhEBvACRV0OYMIGVH4t0gUFfQbttqCDbDMi2f2uHqudEAliO2hO1yMRt8xUW24 PqMmh46Ys8t5Nc0UJSDnRV0NMI8FGGIdTVlmC/iZlM0fuxxtfD6OyYTy3sSA42BQDwbL dQDHfHpVSsusAQfALORIwvKfv6k3BknNEAKnfHEyGJ2h+yPaTMK0gNAfDrjb4ClU8upE K6/5koRke9iKbLcWDXmJoDM1Rz0YtE6LRz3N4X2Ui03cz6pd1gSyRATFRF2ApT3ZxSC/ fa8Q== X-Gm-Message-State: AOUpUlG4S6VV20aYFPkggkSQaXwqGe+4itpomS4yNCLpQPB5tvTaK9XB niV2TJkJIKbqZXtCafTpVBg1vw== X-Google-Smtp-Source: AAOMgpfolq+8VAFxriocaYrsXnzG2wY/N5I796eY8v9sTPRgZ7/YzdjXKWhLuP/KDlDcg9s+5amSWg== X-Received: by 2002:ac8:404c:: with SMTP id j12-v6mr7134056qtl.333.1532713224055; Fri, 27 Jul 2018 10:40:24 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id h10-v6sm2236845qtm.48.2018.07.27.10.40.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Jul 2018 10:40:23 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id C673ACCB; Fri, 27 Jul 2018 13:40:21 -0400 (-04) Date: Fri, 27 Jul 2018 13:40:21 -0400 From: Alvaro Herrera To: v.ventirozos@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15304: Problem when replicating Floating point timestamps to int64 timestamps Message-ID: <20180727174021.n2r3cweflwn3ip4j@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <153271266275.1396.4515851245483780977@wrigleys.postgresql.org> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Jul-27, PG Bug reporting form wrote: > While testing a migration procedure on a database (v9.6.9) from floating > point datetimes to int64 (v9.6.9) using pglogical i saw that after the > initial data sync all the subsequent replicated rows containing dates are > getting nonsensical datetime values in the subscriber. > I've read: > https://www.postgresql.org/message-id/flat/26788.1487455319%40sss.pgh.pa.us#26788.1487455319@sss.pgh.pa.us > So I know that this is not something new, but i was wondering if there is > any way around this, As I recall, pglogical has a way to indicate transmission of data using the text representation rather than binary, which should fix this problem. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services