Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duoKF-0005Aw-Qx for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Sep 2017 23:22:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1duoKF-00080X-DY for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Sep 2017 23:22:39 +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 1duoIg-00054W-6H for pgsql-hackers@postgresql.org; Wed, 20 Sep 2017 23:21:02 +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 1duoIX-0000Ou-Q3 for pgsql-hackers@postgresql.org; Wed, 20 Sep 2017 23:21:01 +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 v8KNKeDu007350; Wed, 20 Sep 2017 19:20:40 -0400 From: Tom Lane To: =?UTF-8?Q?Darafei_=22Kom=D1=8Fpa=22_Praliaskouski?= cc: Nikita Glukhov , Alexander Korotkov , pgsql-hackers , Heikki Linnakangas , Fedor Sigaev Subject: Re: compress method for spgist - 2 In-reply-to: References: <54907069.1030506@sigaev.ru> <20170920190059.1354.29457.pgcf@coridan.postgresql.org> <31999.1505938053@sss.pgh.pa.us> <60e048d3-aa29-8289-5438-3b0c4c1d8d84@postgrespro.ru> Comments: In-reply-to =?UTF-8?Q?Darafei_=22Kom=D1=8Fpa=22_Praliaskouski?= message dated "Wed, 20 Sep 2017 23:06:30 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7348.1505949640.1@sss.pgh.pa.us> Date: Wed, 20 Sep 2017 19:20:40 -0400 Message-ID: <7349.1505949640@sss.pgh.pa.us> 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 =?UTF-8?Q?Darafei_=22Kom=D1=8Fpa=22_Praliaskouski?= writes: > If it happens because NaN > Infinity, then the check should be not for > isnan, but for if (low>high){swap(high, low)}. Yeah, the same idea had occurred to me. It'd still need a comment, but at least it's slightly more apparent what we're trying to ensure. 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