diff options
Diffstat (limited to 'src/backend/access/istrat.h')
-rw-r--r-- | src/backend/access/istrat.h | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/src/backend/access/istrat.h b/src/backend/access/istrat.h deleted file mode 100644 index 201e70e6602..00000000000 --- a/src/backend/access/istrat.h +++ /dev/null @@ -1,80 +0,0 @@ -/*------------------------------------------------------------------------- - * - * istrat.h-- - * POSTGRES index strategy definitions. - * - * - * Copyright (c) 1994, Regents of the University of California - * - * $Id: istrat.h,v 1.1.1.1 1996/07/09 06:21:08 scrappy Exp $ - * - *------------------------------------------------------------------------- - */ -#ifndef ISTRAT_H -#define ISTRAT_H - -#include "postgres.h" -#include "access/attnum.h" -#include "access/skey.h" -#include "access/strat.h" -#include "utils/rel.h" /* for Relation */ - -/* - * StrategyNumberIsValid -- - * True iff the strategy number is valid. - */ -#define StrategyNumberIsValid(strategyNumber) \ - ((bool) ((strategyNumber) != InvalidStrategy)) - -/* - * StrategyNumberIsInBounds -- - * True iff strategy number is within given bounds. - * - * Note: - * Assumes StrategyNumber is an unsigned type. - * Assumes the bounded interval to be (0,max]. - */ -#define StrategyNumberIsInBounds(strategyNumber, maxStrategyNumber) \ - ((bool)(InvalidStrategy < (strategyNumber) && \ - (strategyNumber) <= (maxStrategyNumber))) - -/* - * StrategyMapIsValid -- - * True iff the index strategy mapping is valid. - */ -#define StrategyMapIsValid(map) PointerIsValid(map) - -/* - * IndexStrategyIsValid -- - * True iff the index strategy is valid. - */ -#define IndexStrategyIsValid(s) PointerIsValid(s) - -extern ScanKey StrategyMapGetScanKeyEntry(StrategyMap map, - StrategyNumber strategyNumber); -extern StrategyMap IndexStrategyGetStrategyMap(IndexStrategy indexStrategy, - StrategyNumber maxStrategyNum, AttrNumber attrNum); - -extern Size -AttributeNumberGetIndexStrategySize(AttrNumber maxAttributeNumber, - StrategyNumber maxStrategyNumber); -extern bool StrategyOperatorIsValid(StrategyOperator operator, - StrategyNumber maxStrategy); -extern bool StrategyTermIsValid(StrategyTerm term, - StrategyNumber maxStrategy); -extern bool StrategyExpressionIsValid(StrategyExpression expression, - StrategyNumber maxStrategy); -extern bool StrategyEvaluationIsValid(StrategyEvaluation evaluation); -extern StrategyNumber RelationGetStrategy(Relation relation, - AttrNumber attributeNumber, StrategyEvaluation evaluation, - RegProcedure procedure); -extern bool RelationInvokeStrategy(Relation relation, - StrategyEvaluation evaluation, AttrNumber attributeNumber, - StrategyNumber strategy, Datum left, Datum right); -extern void IndexSupportInitialize(IndexStrategy indexStrategy, - RegProcedure *indexSupport, Oid indexObjectId, - Oid accessMethodObjectId, StrategyNumber maxStrategyNumber, - StrategyNumber maxSupportNumber, AttrNumber maxAttributeNumber); - - -#endif /* ISTRAT_H */ |