Re: BUG #19761: btree_gist: "cannot subtract infinite dates" when inserting 'infinity' into a GiST index on date

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nitin Motiani <nitinmotiani(at)google(dot)com>
Cc: Dilip Kumar <dilipbalaut(at)gmail(dot)com>, alpkeles99(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19761: btree_gist: "cannot subtract infinite dates" when inserting 'infinity' into a GiST index on date
Date: 2026-11-23 22:56:44
Message-ID: 949346.1795474604@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Nitin Motiani <nitinmotiani(at)google(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Zsolt Parragi 2026-11-23 23:16:56 Re: BUG #19932: `repack (concurrently)` does not work in `psql` with `AUTOCOMMIT` set to `off`
Previous Message Zsolt Parragi 2026-11-23 22:49:10 Re: Logical replication commits duplicates in DEFERRABLE unique indexes