8 #include "utils/fmgrprotos.h"
99 unsigned char *mi = (
unsigned char *) m;
103 for (
i = 0;
i < 6;
i++)
174 penalty_num(result, iorg[0], iorg[1], inew[0], inew[1]);
184 &
tinfo, fcinfo->flinfo));
static bool gbt_macadle(const void *a, const void *b, FmgrInfo *flinfo)
Datum gbt_macad_fetch(PG_FUNCTION_ARGS)
Datum gbt_macad_consistent(PG_FUNCTION_ARGS)
static uint64 mac_2_uint64(macaddr *m)
static int gbt_macadkey_cmp(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_macadlt(const void *a, const void *b, FmgrInfo *flinfo)
Datum gbt_macad_union(PG_FUNCTION_ARGS)
Datum gbt_macad_picksplit(PG_FUNCTION_ARGS)
static bool gbt_macadeq(const void *a, const void *b, FmgrInfo *flinfo)
static const gbtree_ninfo tinfo
Datum gbt_macad_penalty(PG_FUNCTION_ARGS)
Datum gbt_macad_compress(PG_FUNCTION_ARGS)
Datum gbt_macad_same(PG_FUNCTION_ARGS)
static bool gbt_macadge(const void *a, const void *b, FmgrInfo *flinfo)
PG_FUNCTION_INFO_V1(gbt_macad_compress)
static bool gbt_macadgt(const void *a, const void *b, FmgrInfo *flinfo)
GISTENTRY * gbt_num_fetch(GISTENTRY *entry, const gbtree_ninfo *tinfo)
bool gbt_num_consistent(const GBT_NUMKEY_R *key, const void *query, const StrategyNumber *strategy, bool is_leaf, const gbtree_ninfo *tinfo, FmgrInfo *flinfo)
bool gbt_num_same(const GBT_NUMKEY *a, const GBT_NUMKEY *b, const gbtree_ninfo *tinfo, FmgrInfo *flinfo)
GISTENTRY * gbt_num_compress(GISTENTRY *entry, const gbtree_ninfo *tinfo)
void * gbt_num_union(GBT_NUMKEY *out, const GistEntryVector *entryvec, const gbtree_ninfo *tinfo, FmgrInfo *flinfo)
GIST_SPLITVEC * gbt_num_picksplit(const GistEntryVector *entryvec, GIST_SPLITVEC *v, const gbtree_ninfo *tinfo, FmgrInfo *flinfo)
#define penalty_num(result, olower, oupper, nlower, nupper)
static void PGresult * res
#define DirectFunctionCall2(func, arg1, arg2)
#define PG_GETARG_POINTER(n)
#define PG_GETARG_UINT16(n)
#define PG_RETURN_POINTER(x)
#define PG_RETURN_BOOL(x)
Datum macaddr_lt(PG_FUNCTION_ARGS)
Datum macaddr_cmp(PG_FUNCTION_ARGS)
Datum macaddr_eq(PG_FUNCTION_ARGS)
Datum macaddr_ge(PG_FUNCTION_ARGS)
Datum macaddr_le(PG_FUNCTION_ARGS)
Datum macaddr_gt(PG_FUNCTION_ARGS)
void * palloc0(Size size)
static bool DatumGetBool(Datum X)
static Datum PointerGetDatum(const void *X)
static Pointer DatumGetPointer(Datum X)
static int32 DatumGetInt32(Datum X)
static Datum MacaddrPGetDatum(const macaddr *X)