From 12d9a12eda9d786b155cacdc81ff56b0c33ab014 Mon Sep 17 00:00:00 2001 From: "Vadim B. Mikheev" Date: Thu, 22 May 1997 16:09:57 +0000 Subject: [PATCH] gist.h: /* ** 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/include/access/gist.h b/src/include/access/gist.h index e49a988176..1fc4a7112b 100644 --- a/src/include/access/gist.h +++ b/src/include/access/gist.h @@ -24,9 +24,16 @@ /* ** 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 */ -- 2.40.0