aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/indexcmds.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-02-01 10:18:46 +0100
committerPeter Eisentraut <peter@eisentraut.org>2025-02-01 10:18:46 +0100
commita5709b5bb293a554913c4b1f6a9c58d1915ba3f7 (patch)
tree35ec5762f9a35f04a80ad009d660c6d03456a1bc /src/backend/commands/indexcmds.c
parent2452e71ff2fe642ff35535d48a728aeca2d61a8d (diff)
downloadpostgresql-a5709b5bb293a554913c4b1f6a9c58d1915ba3f7.tar.gz
postgresql-a5709b5bb293a554913c4b1f6a9c58d1915ba3f7.zip
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 <mark.dilger@enterprisedb.com> Discussion: https://www.postgresql.org/message-id/flat/E72EAA49-354D-4C2E-8EB9-255197F55330@enterprisedb.com
Diffstat (limited to 'src/backend/commands/indexcmds.c')
-rw-r--r--src/backend/commands/indexcmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c
index 59c836fc24d..0aa15a42efe 100644
--- a/src/backend/commands/indexcmds.c
+++ b/src/backend/commands/indexcmds.c
@@ -2455,7 +2455,7 @@ GetOperatorFromCompareType(Oid opclass, Oid rhstype, CompareType cmptype,
* For now we only need GiST support, but this could support other
* indexams if we wanted.
*/
- *strat = GistTranslateStratnum(opclass, cmptype);
+ *strat = GistTranslateCompareType(opclass, cmptype);
if (*strat == InvalidStrategy)
{
HeapTuple tuple;