Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1beSer-0006TK-EW for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Aug 2016 19:55:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1beSer-00060G-1G for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Aug 2016 19:55:49 +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 1beSdT-0004Nt-5d for pgsql-hackers@postgresql.org; Mon, 29 Aug 2016 19:54:23 +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 1beSdQ-000088-JH for pgsql-hackers@postgresql.org; Mon, 29 Aug 2016 19:54:22 +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 u7TJsICT018780; Mon, 29 Aug 2016 15:54:18 -0400 From: Tom Lane To: Greg Stark cc: PostgreSQL-development Subject: Re: Fix some corner cases that cube_in rejects In-reply-to: References: <15085.1472494782@sss.pgh.pa.us> Comments: In-reply-to Greg Stark message dated "Mon, 29 Aug 2016 20:44:56 +0100" Date: Mon, 29 Aug 2016 15:54:18 -0400 Message-ID: <18779.1472500458@sss.pgh.pa.us> X-Pg-Spam-Score: -3.4 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Greg Stark writes: > On Mon, Aug 29, 2016 at 7:19 PM, Tom Lane wrote: >> To deal with the infinity/NaN issues, I made cube_in and cube_out rely >> on float8in_internal and float8out_internal, as we recently did for the >> core geometric types. That causes the response to "1e-700" to be an >> out-of-range error rather than silent underflow, which seems to me to >> be fine, especially since it removes the platform dependency that's >> responsible for needing the separate cube_1.out and cube_3.out files. > So what happens to a database that has invalid cubes in it already? > Offhand I suspect they mostly become valid since float8in will handle > NaN and the like. Nothing really. cube_out works fine. The point of substituting float8out_internal is mostly to make sure we get platform-independent spellings for inf and nan. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers