Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xVcxu-000000007YZ-0036 for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Nov 2026 22:56:51 +0000 Received: from localhost ([127.0.0.1]:48170 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xVcxt-00000006Zr2-200r for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Nov 2026 22:56:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]:36582) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xVcxt-00000006Zqn-0z69 for pgsql-bugs@lists.postgresql.org; Mon, 23 Nov 2026 22:56:49 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xVcxr-000000006XD-2ZEa for pgsql-bugs@lists.postgresql.org; Mon, 23 Nov 2026 22:56:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 6ANMuiTa949347; Mon, 23 Nov 2026 17:56:44 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 sss.pgh.pa.us 6ANMuiTa949347 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sss.pgh.pa.us; s=default; t=1795474604; bh=t3BOk+umAPtnnkw8pHjZnPc7GiOKoaEfFw5mDGafDa0=; h=From:To:cc:Subject:In-reply-to:References:Date:From; b=Jd2HXT01F0axdCeIUMkG5mYv5k4ph/bHej2TwgQV3bymJzmacKgeI82TYxmoZ27Hu m0i61kh3dSTKq98UflqGtaptHtxSly5DqEA4yE69Dx4X56Fi8J34TItCqkttcQ9xmi BvpF53OlcO6J2m/TsG2up6YmgLvnssQOqI5FWNCY= From: Tom Lane To: Nitin Motiani cc: Dilip Kumar , alpkeles99@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19761: btree_gist: "cannot subtract infinite dates" when inserting 'infinity' into a GiST index on date In-reply-to: References: <19761-b72cfc453e487610@postgresql.org> <638642.1793031046@sss.pgh.pa.us> Comments: In-reply-to Nitin Motiani message dated "Sun, 22 Nov 2026 23:01:32 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <949345.1795474604.1@sss.pgh.pa.us> Date: Mon, 23 Nov 2026 17:56:44 -0500 Message-ID: <949346.1795474604@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nitin Motiani writes: > Apologies for the delay on this. I am attaching the new patches. I'm > attaching multiple patch files which can be squashed together if > needed. Pushed with minor cosmetic adjustments. > Like the date type, the distance functions for the timestamp also > return infinity for two same-signed infinities. I changed that also > but since it alters existing results, I'm unsure if it is safe to > merge. Therefore I'm sending it as a separate patch 0003. Please take > a look. Yeah, I included this. It seems a trifle unlikely that anyone is storing infinities in btree_gist indexes today, else we'd have heard complaints before. So keeping the behavior for different datatypes' infinities in sync seems like a more attractive choice. regards, tom lane