From a5709b5bb293a554913c4b1f6a9c58d1915ba3f7 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 1 Feb 2025 10:18:46 +0100 Subject: Rename GistTranslateStratnum() to GistTranslateCompareType() Follow up to commit 630f9a43cec. The previous name had become confusing, because it doesn't actually translate a strategy number but a CompareType into a strategy number. We might add the inverse at some point, which would then probably be called something like GistTranslateStratnum. Reviewed-by: Mark Dilger Discussion: https://www.postgresql.org/message-id/flat/E72EAA49-354D-4C2E-8EB9-255197F55330@enterprisedb.com --- src/backend/access/gist/gistutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/access/gist/gistutil.c') diff --git a/src/backend/access/gist/gistutil.c b/src/backend/access/gist/gistutil.c index 48db718b904..4d3b6dfa32b 100644 --- a/src/backend/access/gist/gistutil.c +++ b/src/backend/access/gist/gistutil.c @@ -1095,7 +1095,7 @@ gist_stratnum_common(PG_FUNCTION_ARGS) * Returns InvalidStrategy if the function is not defined. */ StrategyNumber -GistTranslateStratnum(Oid opclass, CompareType cmptype) +GistTranslateCompareType(Oid opclass, CompareType cmptype) { Oid opfamily; Oid opcintype; -- cgit v1.2.3