Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nb2PZ-0008O4-S3 for pgsql-hackers@arkaria.postgresql.org; Sun, 03 Apr 2022 15:45:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nb2PY-0003kq-Ny for pgsql-hackers@arkaria.postgresql.org; Sun, 03 Apr 2022 15:45:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nb2PY-0003kh-Ev for pgsql-hackers@lists.postgresql.org; Sun, 03 Apr 2022 15:45:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nb2PW-0002ll-JU for pgsql-hackers@lists.postgresql.org; Sun, 03 Apr 2022 15:45:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 233FiwSg1640461; Sun, 3 Apr 2022 11:44:58 -0400 From: Tom Lane To: Joseph Koshakow cc: Andres Freund , PostgreSQL Hackers Subject: Re: Fix overflow in DecodeInterval In-reply-to: References: <2176379.1644612942@sss.pgh.pa.us> <20220213035150.wusl6mmbeb3m3jpy@alap3.anarazel.de> <20220213203037.ie7bgjrodupzxhda@alap3.anarazel.de> <2726280.1644784719@sss.pgh.pa.us> <20220215162809.yryv7bj24lxfoo37@alap3.anarazel.de> <410974.1645400227@sss.pgh.pa.us> <1523458.1648926618@sss.pgh.pa.us> <1531188.1648930455@sss.pgh.pa.us> <1592893.1648969747@sss.pgh.pa.us> Comments: In-reply-to Joseph Koshakow message dated "Sun, 03 Apr 2022 11:23:07 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1640459.1649000698.1@sss.pgh.pa.us> Date: Sun, 03 Apr 2022 11:44:58 -0400 Message-ID: <1640460.1649000698@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Joseph Koshakow writes: > On Sun, Apr 3, 2022 at 3:09 AM Tom Lane wrote: >> Hmm ... buildfarm's not entirely happy [1][2][3]: > I think I know that the issue is. It's with `ParseISO8601Number` and > the minutes field "1.". > Previously that function parsed the entire field into a single double, > so "1." would > be parsed into 1.0. Now we try to parse the integer and decimal parts > separately. So > we first parse "1" into 1 and then fail to "." into anything because > it's not a valid decimal. Interesting point, but then why doesn't it fail everywhere? regards, tom lane