diff options
Diffstat (limited to 'src/backend/access/hash/hashstrat.c')
| -rw-r--r-- | src/backend/access/hash/hashstrat.c | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/backend/access/hash/hashstrat.c b/src/backend/access/hash/hashstrat.c index a423e720c8..fc5df2372d 100644 --- a/src/backend/access/hash/hashstrat.c +++ b/src/backend/access/hash/hashstrat.c @@ -1,46 +1,50 @@ /*------------------------------------------------------------------------- * - * btstrat.c - * Srategy map entries for the btree indexed access method + * hashstrat.c + * Srategy map entries for the hash indexed access method * * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/hash/Attic/hashstrat.c,v 1.17 2001/01/24 19:42:47 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/hash/Attic/hashstrat.c,v 1.18 2001/05/30 19:53:40 tgl Exp $ * *------------------------------------------------------------------------- */ - #include "postgres.h" +#include "access/hash.h" + /* * only one valid strategy for hash tables: equality. */ #ifdef NOT_USED -static StrategyNumber HTNegate[1] = { + +static StrategyNumber HTNegate[HTMaxStrategyNumber] = { InvalidStrategy }; -static StrategyNumber HTCommute[1] = { +static StrategyNumber HTCommute[HTMaxStrategyNumber] = { HTEqualStrategyNumber }; -static StrategyNumber HTNegateCommute[1] = { +static StrategyNumber HTNegateCommute[HTMaxStrategyNumber] = { InvalidStrategy }; -static StrategyEvaluationData HTEvaluationData = { - /* XXX static for simplicity */ +static StrategyExpression HTEvaluationExpressions[HTMaxStrategyNumber] = { + NULL +}; +static StrategyEvaluationData HTEvaluationData = { HTMaxStrategyNumber, (StrategyTransformMap) HTNegate, (StrategyTransformMap) HTCommute, (StrategyTransformMap) HTNegateCommute, - {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL} + HTEvaluationExpressions }; #endif |
