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 1g2G55-0004SJ-MM for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Sep 2018 13:30:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g2G53-0001OF-Kg for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Sep 2018 13:30:17 +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 1g2G53-0001O5-Eq for pgsql-bugs@lists.postgresql.org; Tue, 18 Sep 2018 13:30:17 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g2G50-00085v-QQ for pgsql-bugs@lists.postgresql.org; Tue, 18 Sep 2018 13:30:17 +0000 Received: from [192.168.127.1] (port=33794 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1g2G4x-000NKM-KK; Tue, 18 Sep 2018 13:30:11 +0000 Received: from [127.0.0.1] (port=12499 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1g2G4w-000LwC-Ud; Tue, 18 Sep 2018 13:30:11 +0000 From: Andrew Gierth To: "David G. Johnston" Cc: Sergei Kornilov , "taddeoluca96\@gmail.com" , "pgsql-bugs\@lists.postgresql.org" Subject: Re: BUG #15389: Fill zero in milliseconds of a timestamp In-Reply-To: (David G. Johnston's message of "Tue, 18 Sep 2018 06:17:00 -0700") Message-ID: <87o9cvhr8k.fsf@news-spur.riddles.org.uk> References: <153727105563.28481.15155482805507428357@wrigleys.postgresql.org> <1282311537271961@sas2-ce04c18c415c.qloud-c.yandex.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Tue, 18 Sep 2018 14:30:10 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "David" == David G Johnston writes: >> I think Java is incorrect here. Usually trailing zeros can be >> omitted. Also postgresql timestamp has resolution 1 microsecond, so >> with trailing zeros it must be "2014-09-26 17:17:45.990000", not >> "2014-09-26 17:17:45.990". David> Except the decimal in that construct is a simple part separator David> and not a fractional indicator. Both the SQL spec and ISO 8601 beg to differ. -- Andrew (irc:RhodiumToad)