mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	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
		
			
				
	
	
		
			14 lines
		
	
	
		
			240 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			240 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| -- test stratnum support func
 | |
| SELECT gist_stratnum_btree(7);
 | |
|  gist_stratnum_btree 
 | |
| ---------------------
 | |
|                    0
 | |
| (1 row)
 | |
| 
 | |
| SELECT gist_stratnum_btree(3);
 | |
|  gist_stratnum_btree 
 | |
| ---------------------
 | |
|                    3
 | |
| (1 row)
 | |
| 
 |