Header And Logo

PostgreSQL
| The world's most advanced open source database.

cubedata.h

Go to the documentation of this file.
00001 /* contrib/cube/cubedata.h */
00002 
00003 #define CUBE_MAX_DIM (100)
00004 
00005 typedef struct NDBOX
00006 {
00007     int32       vl_len_;        /* varlena header (do not touch directly!) */
00008     unsigned int dim;
00009     double      x[1];
00010 } NDBOX;
00011 
00012 #define DatumGetNDBOX(x)    ((NDBOX*)DatumGetPointer(x))
00013 #define PG_GETARG_NDBOX(x)  DatumGetNDBOX( PG_DETOAST_DATUM(PG_GETARG_DATUM(x)) )
00014 #define PG_RETURN_NDBOX(x)  PG_RETURN_POINTER(x)