1996-08-27 23:50:29 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* ibit.h--
|
|
|
|
* POSTGRES index valid attribute bit map definitions.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1996-11-03 09:17:38 +01:00
|
|
|
* $Id: ibit.h,v 1.3 1996/11/03 08:17:20 scrappy Exp $
|
1996-08-27 23:50:29 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef IBIT_H
|
|
|
|
#define IBIT_H
|
|
|
|
|
1996-11-03 09:17:38 +01:00
|
|
|
#include "utils/memutils.h"
|
1996-08-27 23:50:29 +02:00
|
|
|
|
|
|
|
typedef struct IndexAttributeBitMapData {
|
|
|
|
char bits[(MaxIndexAttributeNumber + MaxBitsPerByte - 1)
|
|
|
|
/ MaxBitsPerByte];
|
|
|
|
} IndexAttributeBitMapData;
|
|
|
|
|
|
|
|
typedef IndexAttributeBitMapData *IndexAttributeBitMap;
|
|
|
|
|
|
|
|
#define IndexAttributeBitMapSize sizeof(IndexAttributeBitMapData)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* IndexAttributeBitMapIsValid --
|
|
|
|
* True iff attribute bit map is valid.
|
|
|
|
*/
|
|
|
|
#define IndexAttributeBitMapIsValid(bits) PointerIsValid(bits)
|
|
|
|
|
|
|
|
#endif /* IBIT_H */
|