mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Change gist stratnum function to use CompareType
This changes commit 7406ab623f
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
This commit is contained in:
@ -1,3 +1,3 @@
|
||||
-- test stratnum support func
|
||||
SELECT gist_stratnum_btree(3::smallint);
|
||||
SELECT gist_stratnum_btree(18::smallint);
|
||||
SELECT gist_stratnum_btree(7);
|
||||
SELECT gist_stratnum_btree(3);
|
||||
|
Reference in New Issue
Block a user