1996-08-27 23:50:29 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* ibit.h--
|
1997-09-07 07:04:48 +02:00
|
|
|
* POSTGRES index valid attribute bit map definitions.
|
1996-08-27 23:50:29 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1997-09-08 04:41:22 +02:00
|
|
|
* $Id: ibit.h,v 1.6 1997/09/08 02:34:13 momjian Exp $
|
1996-08-27 23:50:29 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
#ifndef IBIT_H
|
1996-08-27 23:50:29 +02:00
|
|
|
#define IBIT_H
|
|
|
|
|
1996-11-05 08:24:03 +01:00
|
|
|
#include <utils/memutils.h>
|
1996-08-27 23:50:29 +02:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
typedef struct IndexAttributeBitMapData
|
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
char bits[(MaxIndexAttributeNumber + MaxBitsPerByte - 1)
|
|
|
|
/ MaxBitsPerByte];
|
|
|
|
} IndexAttributeBitMapData;
|
1996-08-27 23:50:29 +02:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
typedef IndexAttributeBitMapData *IndexAttributeBitMap;
|
1996-08-27 23:50:29 +02:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
#define IndexAttributeBitMapSize sizeof(IndexAttributeBitMapData)
|
1996-08-27 23:50:29 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* IndexAttributeBitMapIsValid --
|
1997-09-07 07:04:48 +02:00
|
|
|
* True iff attribute bit map is valid.
|
1996-08-27 23:50:29 +02:00
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
#define IndexAttributeBitMapIsValid(bits) PointerIsValid(bits)
|
1996-08-27 23:50:29 +02:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
#endif /* IBIT_H */
|