Go to the source code of this file.
|
| PG_FUNCTION_INFO_V1 (gbt_cash_compress) |
|
| PG_FUNCTION_INFO_V1 (gbt_cash_fetch) |
|
| PG_FUNCTION_INFO_V1 (gbt_cash_union) |
|
| PG_FUNCTION_INFO_V1 (gbt_cash_picksplit) |
|
| PG_FUNCTION_INFO_V1 (gbt_cash_consistent) |
|
| PG_FUNCTION_INFO_V1 (gbt_cash_distance) |
|
| PG_FUNCTION_INFO_V1 (gbt_cash_penalty) |
|
| PG_FUNCTION_INFO_V1 (gbt_cash_same) |
|
static bool | gbt_cashgt (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_cashge (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_casheq (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_cashle (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_cashlt (const void *a, const void *b, FmgrInfo *flinfo) |
|
static int | gbt_cashkey_cmp (const void *a, const void *b, FmgrInfo *flinfo) |
|
static float8 | gbt_cash_dist (const void *a, const void *b, FmgrInfo *flinfo) |
|
| PG_FUNCTION_INFO_V1 (cash_dist) |
|
Datum | cash_dist (PG_FUNCTION_ARGS) |
|
Datum | gbt_cash_compress (PG_FUNCTION_ARGS) |
|
Datum | gbt_cash_fetch (PG_FUNCTION_ARGS) |
|
Datum | gbt_cash_consistent (PG_FUNCTION_ARGS) |
|
Datum | gbt_cash_distance (PG_FUNCTION_ARGS) |
|
Datum | gbt_cash_union (PG_FUNCTION_ARGS) |
|
Datum | gbt_cash_penalty (PG_FUNCTION_ARGS) |
|
Datum | gbt_cash_picksplit (PG_FUNCTION_ARGS) |
|
Datum | gbt_cash_same (PG_FUNCTION_ARGS) |
|
◆ cash_dist()
Definition at line 96 of file btree_cash.c.
References Abs, ereport, errcode(), errmsg(), ERROR, PG_GETARG_CASH, PG_INT64_MIN, PG_RETURN_CASH, and pg_sub_s64_overflow().
106 (
errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
107 errmsg(
"money out of range")));
static bool pg_sub_s64_overflow(int64 a, int64 b, int64 *result)
int errcode(int sqlerrcode)
#define PG_GETARG_CASH(n)
#define ereport(elevel,...)
int errmsg(const char *fmt,...)
#define PG_RETURN_CASH(x)
◆ gbt_cash_compress()
◆ gbt_cash_consistent()
Definition at line 136 of file btree_cash.c.
References DatumGetPointer, gbt_num_consistent(), GIST_LEAF, sort-test::key, GISTENTRY::key, cashKEY::lower, GBT_NUMKEY_R::lower, PG_GETARG_CASH, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, cashKEY::upper, and GBT_NUMKEY_R::upper.
#define PG_GETARG_POINTER(n)
bool gbt_num_consistent(const GBT_NUMKEY_R *key, const void *query, const StrategyNumber *strategy, bool is_leaf, const gbtree_ninfo *tinfo, FmgrInfo *flinfo)
#define PG_GETARG_CASH(n)
#define PG_RETURN_BOOL(x)
static const gbtree_ninfo tinfo
#define PG_GETARG_UINT16(n)
#define DatumGetPointer(X)
◆ gbt_cash_dist()
static float8 gbt_cash_dist |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_cash_distance()
Definition at line 160 of file btree_cash.c.
References DatumGetPointer, gbt_num_distance(), GIST_LEAF, sort-test::key, GISTENTRY::key, cashKEY::lower, GBT_NUMKEY_R::lower, PG_GETARG_CASH, PG_GETARG_POINTER, PG_RETURN_FLOAT8, cashKEY::upper, and GBT_NUMKEY_R::upper.
173 &
tinfo, fcinfo->flinfo));
float8 gbt_num_distance(const GBT_NUMKEY_R *key, const void *query, bool is_leaf, const gbtree_ninfo *tinfo, FmgrInfo *flinfo)
#define PG_RETURN_FLOAT8(x)
#define PG_GETARG_POINTER(n)
#define PG_GETARG_CASH(n)
static const gbtree_ninfo tinfo
#define DatumGetPointer(X)
◆ gbt_cash_fetch()
◆ gbt_cash_penalty()
Definition at line 189 of file btree_cash.c.
References DatumGetPointer, sort-test::key, cashKEY::lower, penalty_num, PG_GETARG_POINTER, PG_RETURN_POINTER, and cashKEY::upper.
#define PG_RETURN_POINTER(x)
#define PG_GETARG_POINTER(n)
#define penalty_num(result, olower, oupper, nlower, nupper)
#define DatumGetPointer(X)
◆ gbt_cash_picksplit()
Definition at line 202 of file btree_cash.c.
References gbt_num_picksplit(), PG_GETARG_POINTER, and PG_RETURN_POINTER.
206 &
tinfo, fcinfo->flinfo));
#define PG_RETURN_POINTER(x)
#define PG_GETARG_POINTER(n)
static const gbtree_ninfo tinfo
GIST_SPLITVEC * gbt_num_picksplit(const GistEntryVector *entryvec, GIST_SPLITVEC *v, const gbtree_ninfo *tinfo, FmgrInfo *flinfo)
◆ gbt_cash_same()
◆ gbt_cash_union()
◆ gbt_casheq()
static bool gbt_casheq |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_cashge()
static bool gbt_cashge |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_cashgt()
static bool gbt_cashgt |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_cashkey_cmp()
static int gbt_cashkey_cmp |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_cashle()
static bool gbt_cashle |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_cashlt()
static bool gbt_cashlt |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ PG_FUNCTION_INFO_V1() [1/9]
◆ PG_FUNCTION_INFO_V1() [2/9]
◆ PG_FUNCTION_INFO_V1() [3/9]
◆ PG_FUNCTION_INFO_V1() [4/9]
◆ PG_FUNCTION_INFO_V1() [5/9]
◆ PG_FUNCTION_INFO_V1() [6/9]
◆ PG_FUNCTION_INFO_V1() [7/9]
◆ PG_FUNCTION_INFO_V1() [8/9]
◆ PG_FUNCTION_INFO_V1() [9/9]
◆ tinfo
Initial value:=
{
16,
}
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 float8 gbt_cash_dist(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_cashlt(const void *a, const void *b, FmgrInfo *flinfo)
static int gbt_cashkey_cmp(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_casheq(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_cashgt(const void *a, const void *b, FmgrInfo *flinfo)
Definition at line 79 of file btree_cash.c.