Add some opfamily support functions to lsyscache.c

Peter Eisentraut <peter@eisentraut.org>

Commit: 7317e641268fb9b08d32519920adf1f16c8591ea
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-03-18T10:17:43Z
Releases: 18.0
Add some opfamily support functions to lsyscache.c

Add get_opfamily_method() and get_opfamily_member_for_cmptype() in
lsyscache.c.  No callers yet, but we'll add some soon.  This is part
of generalizing some parts of the code away from having btree
hardcoded and use CompareType instead.

Author: Mark Dilger <mark.dilger@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/E72EAA49-354D-4C2E-8EB9-255197F55330@enterprisedb.com

Files

PathChange+/−
src/backend/utils/cache/lsyscache.c modified +44 −0
src/include/utils/lsyscache.h modified +4 −0

Discussion