Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxDVT-0005EF-9B for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Sep 2017 14:40:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dxDVS-0007A8-Rr for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Sep 2017 14:40:10 +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.84_2) (envelope-from ) id 1dxDVR-000773-VY; Wed, 27 Sep 2017 14:40:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dxDVL-0005RE-5p; Wed, 27 Sep 2017 14:40:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v8REdxXU024526; Wed, 27 Sep 2017 10:40:00 -0400 From: Tom Lane To: Kohei KaiGai cc: Taiki Kondo , "pgsql-bugs@postgresql.org" , "pgsql-hackers@postgresql.org" , Hiroshi Yanagisawa Subject: Re: [HACKERS] Float value 'Infinity' is cast to numeric 1 on Windows In-reply-to: References: <12A9442FBAE80D4E8953883E0B84E088C8C7A2@BPXM01GP.gisp.nec.co.jp> Comments: In-reply-to Kohei KaiGai message dated "Wed, 27 Sep 2017 20:06:55 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24524.1506523199.1@sss.pgh.pa.us> Date: Wed, 27 Sep 2017 10:39:59 -0400 Message-ID: <24525.1506523199@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Kohei KaiGai writes: > Does it make sense to put a check of "isinf(val)" and ereport prior to > the snprintf()? Yeah, that was my reaction too. Obviously this wasn't thought about in the original coding ... regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs