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