pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nitin Motiani <nitinmotiani@google.com>
Cc: Dilip Kumar <dilipbalaut@gmail.com>
Cc: alpkeles99@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19761: btree_gist: "cannot subtract infinite dates" when inserting 'infinity' into a GiST index on date
Date: Mon, 23 Nov 2026 17:56:44 -0500
Message-ID: <949346.1795474604@sss.pgh.pa.us> (raw)
In-Reply-To: <CAH5HC94oNQqoQ3i682oLUM7pdBmfhhRNH9c5kpmM92Kxs91zuA@mail.gmail.com>
References: <19761-b72cfc453e487610@postgresql.org>
	<CAH5HC95Bv34Drxh4DLt1qvCtc5suwKVcmfuQaixqiERJtHSHgg@mail.gmail.com>
	<CAFiTN-sUiDN6ef-eONKhP6=Nz1sdaY6S9xHeaPtUgmVpuZ8ROg@mail.gmail.com>
	<CAH5HC96OaXibbEbBaPVGTeb6UZyBCsQSWWd5hND+k_uhobTAnQ@mail.gmail.com>
	<CAFiTN-s=CrBeXpBiHBXCu0ZpYqB-138vbmn4MajV_zFYPrRjKw@mail.gmail.com>
	<CAH5HC96iozmO=H_sgihkb5F97evpjwb+4bCvY1RWVnxBK4a1hw@mail.gmail.com>
	<638642.1793031046@sss.pgh.pa.us>
	<CAH5HC95brv15D73BQwdOoP53ueVtD+Qg+GPKsLqvEvKOSJLwyg@mail.gmail.com>
	<CAH5HC94oNQqoQ3i682oLUM7pdBmfhhRNH9c5kpmM92Kxs91zuA@mail.gmail.com>

Nitin Motiani <nitinmotiani@google.com> 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






view thread (11+ messages)

Message-ID: <949346.1795474604@sss.pgh.pa.us>
Permalink:  ../949346.1795474604@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/949346.1795474604@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, nitinmotiani@google.com, dilipbalaut@gmail.com, alpkeles99@gmail.com
  Subject: Re: BUG #19761: btree_gist: "cannot subtract infinite dates" when inserting 'infinity' into a GiST index on date
  In-Reply-To: <949346.1795474604@sss.pgh.pa.us>
  References: <19761-b72cfc453e487610@postgresql.org> <CAH5HC95Bv34Drxh4DLt1qvCtc5suwKVcmfuQaixqiERJtHSHgg@mail.gmail.com> <CAFiTN-sUiDN6ef-eONKhP6=Nz1sdaY6S9xHeaPtUgmVpuZ8ROg@mail.gmail.com> <CAH5HC96OaXibbEbBaPVGTeb6UZyBCsQSWWd5hND+k_uhobTAnQ@mail.gmail.com> <CAFiTN-s=CrBeXpBiHBXCu0ZpYqB-138vbmn4MajV_zFYPrRjKw@mail.gmail.com> <CAH5HC96iozmO=H_sgihkb5F97evpjwb+4bCvY1RWVnxBK4a1hw@mail.gmail.com> <638642.1793031046@sss.pgh.pa.us> <CAH5HC95brv15D73BQwdOoP53ueVtD+Qg+GPKsLqvEvKOSJLwyg@mail.gmail.com> <CAH5HC94oNQqoQ3i682oLUM7pdBmfhhRNH9c5kpmM92Kxs91zuA@mail.gmail.com> <949346.1795474604@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox