pgsql: Use ssup_datum_*_cmp in more places

From: John Naylor <john(dot)naylor(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use ssup_datum_*_cmp in more places
Date: 2026-07-02 08:58:22
Message-ID: E1wfDFW-00142B-23@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)pgdev(at)gmail(dot)com>
Reviewed-by: Michael Paquier <michael(at)paquier(dot)xyz>
Discussion: https://postgr.es/m/CA+fm-RMyLC94NfrxCh273+dKs44U0ZJjRczznvzvgw=KtpPNVw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/51cd5d6f052306e9288ff8c162ca9596432a5d2e

Modified Files
--------------
src/backend/access/nbtree/nbtcompare.c | 43 +++-------------------------------
1 file changed, 3 insertions(+), 40 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Nathan Bossart 2026-07-02 18:06:56 pgsql: Add commit d69fdf79b8 to .git-blame-ignore-revs.
Previous Message Michael Paquier 2026-07-02 06:53:23 pgsql: test_custom_stats: Fail if loading module outside shared_preload