diff options
Diffstat (limited to 'src/backend/access/hash/hashstrat.c')
-rw-r--r-- | src/backend/access/hash/hashstrat.c | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/src/backend/access/hash/hashstrat.c b/src/backend/access/hash/hashstrat.c deleted file mode 100644 index d72ad08ee17..00000000000 --- a/src/backend/access/hash/hashstrat.c +++ /dev/null @@ -1,84 +0,0 @@ -/*------------------------------------------------------------------------- - * - * hashstrat.c - * Strategy map entries for the hash indexed access method - * - * Portions Copyright (c) 1996-2003, 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.23 2003/08/04 02:39:57 momjian Exp $ - * - *------------------------------------------------------------------------- - */ -#include "postgres.h" - -#include "access/hash.h" - - -/* - * only one valid strategy for hash tables: equality. - */ - -#ifdef NOT_USED - -static StrategyNumber HTNegate[HTMaxStrategyNumber] = { - InvalidStrategy -}; - -static StrategyNumber HTCommute[HTMaxStrategyNumber] = { - HTEqualStrategyNumber -}; - -static StrategyNumber HTNegateCommute[HTMaxStrategyNumber] = { - InvalidStrategy -}; - -static StrategyExpression HTEvaluationExpressions[HTMaxStrategyNumber] = { - NULL -}; - -static StrategyEvaluationData HTEvaluationData = { - HTMaxStrategyNumber, - (StrategyTransformMap) HTNegate, - (StrategyTransformMap) HTCommute, - (StrategyTransformMap) HTNegateCommute, - HTEvaluationExpressions -}; -#endif - -/* ---------------------------------------------------------------- - * RelationGetHashStrategy - * ---------------------------------------------------------------- - */ - -#ifdef NOT_USED -static StrategyNumber -_hash_getstrat(Relation rel, - AttrNumber attno, - RegProcedure proc) -{ - StrategyNumber strat; - - strat = RelationGetStrategy(rel, attno, &HTEvaluationData, proc); - - Assert(StrategyNumberIsValid(strat)); - - return strat; -} -#endif - -#ifdef NOT_USED -static bool -_hash_invokestrat(Relation rel, - AttrNumber attno, - StrategyNumber strat, - Datum left, - Datum right) -{ - return (RelationInvokeStrategy(rel, &HTEvaluationData, attno, strat, - left, right)); -} - -#endif |