mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Massive commit to run PGINDENT on all *.c and *.h files.
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* istrat.h--
|
||||
* POSTGRES index strategy definitions.
|
||||
* POSTGRES index strategy definitions.
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: istrat.h,v 1.5 1997/08/19 21:37:31 momjian Exp $
|
||||
* $Id: istrat.h,v 1.6 1997/09/07 04:56:05 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef ISTRAT_H
|
||||
#ifndef ISTRAT_H
|
||||
#define ISTRAT_H
|
||||
|
||||
#include <utils/rel.h>
|
||||
@@ -18,51 +18,55 @@
|
||||
|
||||
/*
|
||||
* StrategyNumberIsValid --
|
||||
* True iff the strategy number is valid.
|
||||
* True iff the strategy number is valid.
|
||||
*/
|
||||
#define StrategyNumberIsValid(strategyNumber) \
|
||||
((bool) ((strategyNumber) != InvalidStrategy))
|
||||
((bool) ((strategyNumber) != InvalidStrategy))
|
||||
|
||||
/*
|
||||
* StrategyNumberIsInBounds --
|
||||
* True iff strategy number is within given bounds.
|
||||
* True iff strategy number is within given bounds.
|
||||
*
|
||||
* Note:
|
||||
* Assumes StrategyNumber is an unsigned type.
|
||||
* Assumes the bounded interval to be (0,max].
|
||||
* Assumes StrategyNumber is an unsigned type.
|
||||
* Assumes the bounded interval to be (0,max].
|
||||
*/
|
||||
#define StrategyNumberIsInBounds(strategyNumber, maxStrategyNumber) \
|
||||
((bool)(InvalidStrategy < (strategyNumber) && \
|
||||
(strategyNumber) <= (maxStrategyNumber)))
|
||||
((bool)(InvalidStrategy < (strategyNumber) && \
|
||||
(strategyNumber) <= (maxStrategyNumber)))
|
||||
|
||||
/*
|
||||
* StrategyMapIsValid --
|
||||
* True iff the index strategy mapping is valid.
|
||||
* True iff the index strategy mapping is valid.
|
||||
*/
|
||||
#define StrategyMapIsValid(map) PointerIsValid(map)
|
||||
#define StrategyMapIsValid(map) PointerIsValid(map)
|
||||
|
||||
/*
|
||||
* IndexStrategyIsValid --
|
||||
* True iff the index strategy is valid.
|
||||
* True iff the index strategy is valid.
|
||||
*/
|
||||
#define IndexStrategyIsValid(s) PointerIsValid(s)
|
||||
#define IndexStrategyIsValid(s) PointerIsValid(s)
|
||||
|
||||
extern StrategyMap IndexStrategyGetStrategyMap(IndexStrategy indexStrategy,
|
||||
StrategyNumber maxStrategyNum, AttrNumber attrNum);
|
||||
extern StrategyMap
|
||||
IndexStrategyGetStrategyMap(IndexStrategy indexStrategy,
|
||||
StrategyNumber maxStrategyNum, AttrNumber attrNum);
|
||||
|
||||
extern Size
|
||||
extern Size
|
||||
AttributeNumberGetIndexStrategySize(AttrNumber maxAttributeNumber,
|
||||
StrategyNumber maxStrategyNumber);
|
||||
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);
|
||||
StrategyNumber maxStrategyNumber);
|
||||
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 */
|
||||
#endif /* ISTRAT_H */
|
||||
|
||||
Reference in New Issue
Block a user