| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Kirill Reshke <reshkekirill(at)gmail(dot)com> |
| Cc: | Raja Sai pranav <rajasaipranav0(at)gmail(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: btree_gist: <-> fails on same-sign infinite intervals |
| Date: | 2026-12-03 18:34:02 |
| Message-ID: | 2403927.1796322842@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Kirill Reshke <reshkekirill(at)gmail(dot)com> writes:
> We need to allow PG_INT32_MAX months as attached
Meh. It's true that this can't accidentally match interval infinity
since the lower-order fields are bounded, but there's a question of
diminishing returns here. I thought briefly about trying to extend
the range of non-Infinity results a little further by allowing the
lower fields to assume larger values than what the v2 patch will do.
But we are not going to be able to completely eliminate the need to
sometimes return Infinity, and frankly all these cases are already
far outside the range of conceivable practical use. So I'm content
with what v2 did.
A bigger problem is that the v2 patch depends on int128.h support
that doesn't exist pre-v19. I have a proposal out to back-patch
that stuff [1], but if anyone objects then we are going to have to
back off the whole thing and go back to v1.
regards, tom lane
[1] https://www.postgresql.org/message-id/2247829.1796318663%40sss.pgh.pa.us
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ishjaap Singh | 2026-12-03 18:36:03 | Re: BUG #19956: json #>, #>> and json_extract_path resolve a negative array index against an earlier sibling array |
| Previous Message | Aman Ganapathy | 2026-12-03 18:31:47 | Re: BUG #19965: btree_gist index on timetz returns too few rows for <, > and <> |