Back-patch v19 improvements to common/int128.h?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Cc: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
Subject: Back-patch v19 improvements to common/int128.h?
Date: 2026-12-03 17:24:23
Message-ID: 2247829.1796318663@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

src/include/common/int128.h has been there for a long time,
remaining basically unchanged since 9.6. In the v19 cycle
Dean did a lot of work on it and added new functionality.
Now I'm looking at back-patching a bug fix [1] that requires
some of that new functionality.

What I am considering doing is simply copying the current
state of int128.h into all the supported branches. This
seems in line with some other back-patching of widely-useful
functionality that we've done, such as making palloc_object
and friends available in back branches.

We could go further by also back-patching
src/test/modules/test_int128, but that would add a deal
of work and I don't think it buys much. The last non-comment
change to int128.h was in August 2025, so it's survived
substantial testing and I think we can credit that it's OK
based on continued testing in v19/master.

Thoughts?

regards, tom lane

[1] https://www.postgresql.org/message-id/CAPHduZBW%2Bhm2X3%2Bfj%3DttLRfD_%2BOWzZqyFGFrVR61c575-o9oTg%40mail.gmail.com

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Burd 2026-12-03 17:32:11 Compute the distance between a point and a box exactly
Previous Message Henson Choi 2026-12-03 16:46:04 Re: Speed up tuplestore_seek() by starting from the nearest known position