32 return (*((
const Cash *)
a) > *((
const Cash *)
b));
37 return (*((
const Cash *)
a) >= *((
const Cash *)
b));
42 return (*((
const Cash *)
a) == *((
const Cash *)
b));
47 return (*((
const Cash *)
a) <= *((
const Cash *)
b));
52 return (*((
const Cash *)
a) < *((
const Cash *)
b));
106 (
errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
107 errmsg(
"money out of range")));
173 &
tinfo, fcinfo->flinfo));
205 &
tinfo, fcinfo->flinfo));
Datum gbt_cash_picksplit(PG_FUNCTION_ARGS)
static bool gbt_casheq(const void *a, const void *b, FmgrInfo *flinfo)
Datum gbt_cash_fetch(PG_FUNCTION_ARGS)
PG_FUNCTION_INFO_V1(gbt_cash_compress)
Datum gbt_cash_consistent(PG_FUNCTION_ARGS)
Datum gbt_cash_distance(PG_FUNCTION_ARGS)
static bool gbt_cashgt(const void *a, const void *b, FmgrInfo *flinfo)
static int gbt_cashkey_cmp(const void *a, const void *b, FmgrInfo *flinfo)
Datum gbt_cash_penalty(PG_FUNCTION_ARGS)
static bool gbt_cashlt(const void *a, const void *b, FmgrInfo *flinfo)
static float8 gbt_cash_dist(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_cashle(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_cashge(const void *a, const void *b, FmgrInfo *flinfo)
static const gbtree_ninfo tinfo
Datum gbt_cash_union(PG_FUNCTION_ARGS)
Datum cash_dist(PG_FUNCTION_ARGS)
Datum gbt_cash_same(PG_FUNCTION_ARGS)
Datum gbt_cash_compress(PG_FUNCTION_ARGS)
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 GET_FLOAT_DISTANCE(t, arg1, arg2)
#define PG_RETURN_CASH(x)
#define PG_GETARG_CASH(n)
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define PG_RETURN_FLOAT8(x)
#define PG_GETARG_POINTER(n)
#define PG_GETARG_UINT16(n)
#define PG_RETURN_POINTER(x)
#define PG_RETURN_BOOL(x)
static bool pg_sub_s64_overflow(int64 a, int64 b, int64 *result)
static Pointer DatumGetPointer(Datum X)