Use ssup_datum_*_cmp in more places

John Naylor <john.naylor@postgresql.org>

Commit: 51cd5d6f052306e9288ff8c162ca9596432a5d2e
Author: John Naylor <john.naylor@postgresql.org>
Date: 2026-07-02T08:55:11Z
Releases: master
Use ssup_datum_*_cmp in more places

The int2, oid, and oid8 "fastcmp" comparators are functionally
equivalent to the ssup_datum_int32_cmp (for int2) and
ssup_datum_unsigned_cmp (for oid, oid8) functions added by commit
697492434, so simplify by using the latter instead. This has the
added benefit of making these types eligible for radix sort.

Author: Baji Shaik <baji.pgdev@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CA+fm-RMyLC94NfrxCh273+dKs44U0ZJjRczznvzvgw=KtpPNVw@mail.gmail.com

Files

PathChange+/−
src/backend/access/nbtree/nbtcompare.c modified +3 −40

Discussion