36 #ifdef USE_FLOAT8_BYVAL
37 #define TimestampGetDatumFast(X) TimestampGetDatum(X)
39 #define TimestampGetDatumFast(X) PointerGetDatum(&(X))
286 &
tinfo, fcinfo->flinfo));
329 &
tinfo, fcinfo->flinfo));
344 #define penalty_check_max_float(val) \
346 if ( val > FLT_MAX ) \
348 if ( val < -FLT_MAX ) \
367 orgdbl[0] = ((double) origentry->
lower);
368 orgdbl[1] = ((double) origentry->
upper);
369 newdbl[0] = ((double) newentry->
lower);
370 newdbl[1] = ((double) newentry->
upper);
377 penalty_num(result, orgdbl[0], orgdbl[1], newdbl[0], newdbl[1]);
388 &
tinfo, fcinfo->flinfo));
Datum timestamp_cmp(PG_FUNCTION_ARGS)
Datum timestamp_ge(PG_FUNCTION_ARGS)
Datum timestamp_lt(PG_FUNCTION_ARGS)
Datum timestamp_le(PG_FUNCTION_ARGS)
Datum timestamp_gt(PG_FUNCTION_ARGS)
Datum timestamp_mi(PG_FUNCTION_ARGS)
Datum timestamp_eq(PG_FUNCTION_ARGS)
Interval * abs_interval(Interval *a)
Datum gbt_ts_compress(PG_FUNCTION_ARGS)
static bool gbt_tsle(const void *a, const void *b, FmgrInfo *flinfo)
#define TimestampGetDatumFast(X)
Datum gbt_ts_penalty(PG_FUNCTION_ARGS)
Datum gbt_tstz_compress(PG_FUNCTION_ARGS)
static bool gbt_tsgt(const void *a, const void *b, FmgrInfo *flinfo)
Datum gbt_ts_same(PG_FUNCTION_ARGS)
Datum gbt_tstz_consistent(PG_FUNCTION_ARGS)
Datum gbt_tstz_distance(PG_FUNCTION_ARGS)
Datum gbt_ts_distance(PG_FUNCTION_ARGS)
Datum gbt_ts_picksplit(PG_FUNCTION_ARGS)
#define penalty_check_max_float(val)
Datum ts_dist(PG_FUNCTION_ARGS)
Datum gbt_ts_union(PG_FUNCTION_ARGS)
Datum gbt_ts_fetch(PG_FUNCTION_ARGS)
static const gbtree_ninfo tinfo
static bool gbt_tslt(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_tsge(const void *a, const void *b, FmgrInfo *flinfo)
Datum tstz_dist(PG_FUNCTION_ARGS)
static Timestamp tstz_to_ts_gmt(TimestampTz ts)
Datum gbt_ts_consistent(PG_FUNCTION_ARGS)
static int gbt_tskey_cmp(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_tseq(const void *a, const void *b, FmgrInfo *flinfo)
PG_FUNCTION_INFO_V1(gbt_ts_compress)
static float8 gbt_ts_dist(const void *a, const void *b, FmgrInfo *flinfo)
float8 gbt_num_distance(const GBT_NUMKEY_R *key, const void *query, bool is_leaf, const gbtree_ninfo *tinfo, 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)
#define INTERVAL_TO_SEC(ivp)
#define TIMESTAMP_NOT_FINITE(j)
static void PGresult * res
static float8 get_float8_infinity(void)
#define DirectFunctionCall2(func, arg1, arg2)
#define PG_RETURN_FLOAT8(x)
#define PG_GETARG_POINTER(n)
#define PG_GETARG_DATUM(n)
#define PG_GETARG_UINT16(n)
#define PG_RETURN_POINTER(x)
#define PG_RETURN_BOOL(x)
#define gistentryinit(e, k, r, pg, o, l)
static bool DatumGetBool(Datum X)
static Datum PointerGetDatum(const void *X)
static Pointer DatumGetPointer(Datum X)
static int32 DatumGetInt32(Datum X)
#define PG_GETARG_TIMESTAMP(n)
#define PG_GETARG_TIMESTAMPTZ(n)
static Interval * DatumGetIntervalP(Datum X)
#define PG_RETURN_INTERVAL_P(x)
static TimestampTz DatumGetTimestampTz(Datum X)