From 0df3475674a3c47fdde804f9a3c2323e9071aa63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20Zim=C3=A1nyi?= Date: Fri, 28 Aug 2026 07:05:12 +0200 Subject: [PATCH] Name the GiST translate-cmptype support function as PostgreSQL 18 defines it PostgreSQL 18 declares the default translate-cmptype support function as gist_translate_cmptype_common in utils/fmgrprotos.h, which mgistutil.c already includes, so the definition it carries takes that name and draws its prototype from the server header the way every other core-named function in the file does. --- src/mgist/mgistutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mgist/mgistutil.c b/src/mgist/mgistutil.c index 2419759..778c6f3 100644 --- a/src/mgist/mgistutil.c +++ b/src/mgist/mgistutil.c @@ -1060,11 +1060,11 @@ gistGetFakeLSN(Relation rel) } /* - * This is a stratnum support function for GiST opclasses that use the + * This is a translate_cmptype support function for GiST opclasses that use the * RT*StrategyNumber constants. */ Datum -gist_stratnum_common(PG_FUNCTION_ARGS) +gist_translate_cmptype_common(PG_FUNCTION_ARGS) { CompareType cmptype = PG_GETARG_INT32(0);