]> granicus.if.org Git - postgresql/commitdiff
gist.h:
authorVadim B. Mikheev <vadim4o@yahoo.com>
Thu, 22 May 1997 16:09:57 +0000 (16:09 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Thu, 22 May 1997 16:09:57 +0000 (16:09 +0000)
/*
** You can have as many strategies as you please in GiSTs, as
** long as your consistent method can handle them
*/
#define GISTNStrategies                 100
                                        ^^^
- too big number:

strat.h->StrategyEvaluationData->StrategyExpression  expression[12]
                                                                ^^
 - so 12 is real max # of strategies, or StrategyEvaluationIsValid
crashes backend (called if CASSER defined).

src/include/access/gist.h

index e49a988176d0003f807f2dffe11c7fe086238e52..1fc4a7112b0671c5281a083b0a42eaefe99133f4 100644 (file)
 /* 
 ** You can have as many strategies as you please in GiSTs, as
 ** long as your consistent method can handle them
-*/
+**
+** But strat.h->StrategyEvaluationData->StrategyExpression  expression[12]
+** - so 12 is real max # of strategies, or StrategyEvaluationIsValid
+** crashes backend...          - vadim 05/21/97
+
 #define GISTNStrategies                        100
 
+*/
+#define GISTNStrategies                        12
+
 /*
 ** Helper routines
 */