aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/gist.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-01-15 11:28:39 +0100
committerPeter Eisentraut <peter@eisentraut.org>2025-01-15 11:34:04 +0100
commit630f9a43cece93cb4a5c243b30e34abce6a89514 (patch)
treeef3a4a65f971bd526919b0ee67fad92bb4590ef9 /src/include/access/gist.h
parent6339f6468e8217f556e38482626250dc72d7cd00 (diff)
downloadpostgresql-630f9a43cece93cb4a5c243b30e34abce6a89514.tar.gz
postgresql-630f9a43cece93cb4a5c243b30e34abce6a89514.zip
Change gist stratnum function to use CompareType
This changes commit 7406ab623fe in that the gist strategy number mapping support function is changed to use the CompareType enum as input, instead of the "well-known" RT*StrategyNumber strategy numbers. This is a bit cleaner, since you are not dealing with two sets of strategy numbers. Also, this will enable us to subsume this system into a more general system of using CompareType to define operator semantics across index methods. Discussion: https://www.postgresql.org/message-id/flat/E72EAA49-354D-4C2E-8EB9-255197F55330@enterprisedb.com
Diffstat (limited to 'src/include/access/gist.h')
-rw-r--r--src/include/access/gist.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/access/gist.h b/src/include/access/gist.h
index 8ccaecfa1f4..446871263f6 100644
--- a/src/include/access/gist.h
+++ b/src/include/access/gist.h
@@ -247,6 +247,7 @@ typedef struct
do { (e).key = (k); (e).rel = (r); (e).page = (pg); \
(e).offset = (o); (e).leafkey = (l); } while (0)
-extern StrategyNumber GistTranslateStratnum(Oid opclass, StrategyNumber strat);
+enum CompareType;
+extern StrategyNumber GistTranslateStratnum(Oid opclass, enum CompareType cmp);
#endif /* GIST_H */