1
#ifndef __TXTIDX_STAT_H__
2
#define __TXTIDX_STAT_H__
6
#include "access/gist.h"
7
#include "access/itup.h"
8
#include "utils/builtins.h"
9
#include "storage/bufpage.h"
27
#define STATHDRSIZE (sizeof(int4)*4)
28
#define CALCSTATSIZE(x, lenstr) ( x * sizeof(StatEntry) + STATHDRSIZE + lenstr )
29
#define STATPTR(x) ( (StatEntry*) ( (char*)x + STATHDRSIZE ) )
30
#define STATSTRPTR(x) ( (char*)x + STATHDRSIZE + ( sizeof(StatEntry) * ((tsvector*)x)->size ) )
31
#define STATSTRSIZE(x) ( ((tsvector*)x)->len - STATHDRSIZE - ( sizeof(StatEntry) * ((tsvector*)x)->size ) )