File tree 8 files changed +11
-9
lines changed
8 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ blhandler(PG_FUNCTION_ARGS)
73
73
{
74
74
IndexAmRoutine * amroutine = makeNode (IndexAmRoutine );
75
75
76
- amroutine -> amstrategies = 1 ;
77
- amroutine -> amsupport = 1 ;
76
+ amroutine -> amstrategies = BLOOM_NSTRATEGIES ;
77
+ amroutine -> amsupport = BLOOM_NPROC ;
78
78
amroutine -> amcanorder = false;
79
79
amroutine -> amcanorderbyop = false;
80
80
amroutine -> amcanbackward = false;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ ginhandler(PG_FUNCTION_ARGS)
35
35
IndexAmRoutine * amroutine = makeNode (IndexAmRoutine );
36
36
37
37
amroutine -> amstrategies = 0 ;
38
- amroutine -> amsupport = 6 ;
38
+ amroutine -> amsupport = GINNProcs ;
39
39
amroutine -> amcanorder = false;
40
40
amroutine -> amcanorderbyop = false;
41
41
amroutine -> amcanbackward = false;
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ gisthandler(PG_FUNCTION_ARGS)
57
57
IndexAmRoutine * amroutine = makeNode (IndexAmRoutine );
58
58
59
59
amroutine -> amstrategies = 0 ;
60
- amroutine -> amsupport = 9 ;
60
+ amroutine -> amsupport = GISTNProcs ;
61
61
amroutine -> amcanorder = false;
62
62
amroutine -> amcanorderbyop = true;
63
63
amroutine -> amcanbackward = false;
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ hashhandler(PG_FUNCTION_ARGS)
51
51
{
52
52
IndexAmRoutine * amroutine = makeNode (IndexAmRoutine );
53
53
54
- amroutine -> amstrategies = 1 ;
55
- amroutine -> amsupport = 1 ;
54
+ amroutine -> amstrategies = HTMaxStrategyNumber ;
55
+ amroutine -> amsupport = HASHNProcs ;
56
56
amroutine -> amcanorder = false;
57
57
amroutine -> amcanorderbyop = false;
58
58
amroutine -> amcanbackward = true;
Original file line number Diff line number Diff line change @@ -84,8 +84,8 @@ bthandler(PG_FUNCTION_ARGS)
84
84
{
85
85
IndexAmRoutine * amroutine = makeNode (IndexAmRoutine );
86
86
87
- amroutine -> amstrategies = 5 ;
88
- amroutine -> amsupport = 2 ;
87
+ amroutine -> amstrategies = BTMaxStrategyNumber ;
88
+ amroutine -> amsupport = BTNProcs ;
89
89
amroutine -> amcanorder = true;
90
90
amroutine -> amcanorderbyop = false;
91
91
amroutine -> amcanbackward = true;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ spghandler(PG_FUNCTION_ARGS)
36
36
IndexAmRoutine * amroutine = makeNode (IndexAmRoutine );
37
37
38
38
amroutine -> amstrategies = 0 ;
39
- amroutine -> amsupport = 5 ;
39
+ amroutine -> amsupport = SPGISTNProc ;
40
40
amroutine -> amcanorder = false;
41
41
amroutine -> amcanorderbyop = false;
42
42
amroutine -> amcanbackward = false;
Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ typedef HashMetaPageData *HashMetaPage;
239
239
* Since we only have one such proc in amproc, it's number 1.
240
240
*/
241
241
#define HASHPROC 1
242
+ #define HASHNProcs 1
242
243
243
244
244
245
/* public routines */
Original file line number Diff line number Diff line change @@ -454,6 +454,7 @@ typedef struct xl_btree_newroot
454
454
455
455
#define BTORDER_PROC 1
456
456
#define BTSORTSUPPORT_PROC 2
457
+ #define BTNProcs 2
457
458
458
459
/*
459
460
* We need to be able to tell the difference between read and write
You can’t perform that action at this time.
0 commit comments