Go to the source code of this file.
|
| PG_FUNCTION_INFO_V1 (gbt_int4_compress) |
|
| PG_FUNCTION_INFO_V1 (gbt_int4_fetch) |
|
| PG_FUNCTION_INFO_V1 (gbt_int4_union) |
|
| PG_FUNCTION_INFO_V1 (gbt_int4_picksplit) |
|
| PG_FUNCTION_INFO_V1 (gbt_int4_consistent) |
|
| PG_FUNCTION_INFO_V1 (gbt_int4_distance) |
|
| PG_FUNCTION_INFO_V1 (gbt_int4_penalty) |
|
| PG_FUNCTION_INFO_V1 (gbt_int4_same) |
|
static bool | gbt_int4gt (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_int4ge (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_int4eq (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_int4le (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_int4lt (const void *a, const void *b, FmgrInfo *flinfo) |
|
static int | gbt_int4key_cmp (const void *a, const void *b, FmgrInfo *flinfo) |
|
static float8 | gbt_int4_dist (const void *a, const void *b, FmgrInfo *flinfo) |
|
| PG_FUNCTION_INFO_V1 (int4_dist) |
|
Datum | int4_dist (PG_FUNCTION_ARGS) |
|
Datum | gbt_int4_compress (PG_FUNCTION_ARGS) |
|
Datum | gbt_int4_fetch (PG_FUNCTION_ARGS) |
|
Datum | gbt_int4_consistent (PG_FUNCTION_ARGS) |
|
Datum | gbt_int4_distance (PG_FUNCTION_ARGS) |
|
Datum | gbt_int4_union (PG_FUNCTION_ARGS) |
|
Datum | gbt_int4_penalty (PG_FUNCTION_ARGS) |
|
Datum | gbt_int4_picksplit (PG_FUNCTION_ARGS) |
|
Datum | gbt_int4_same (PG_FUNCTION_ARGS) |
|
◆ int32KEY
◆ gbt_int4_compress()
◆ gbt_int4_consistent()
Definition at line 137 of file btree_int4.c.
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_UINT16(n)
#define PG_GETARG_INT32(n)
#define PG_RETURN_BOOL(x)
#define DatumGetPointer(X)
References DatumGetPointer, gbt_num_consistent(), GIST_LEAF, GISTENTRY::key, sort-test::key, int32key::lower, PG_GETARG_INT32, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, tinfo, and int32key::upper.
◆ gbt_int4_dist()
static float8 gbt_int4_dist |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_int4_distance()
Definition at line 160 of file btree_int4.c.
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)
References DatumGetPointer, gbt_num_distance(), GIST_LEAF, GISTENTRY::key, sort-test::key, int32key::lower, PG_GETARG_INT32, PG_GETARG_POINTER, PG_RETURN_FLOAT8, tinfo, and int32key::upper.
◆ gbt_int4_fetch()
◆ gbt_int4_penalty()
Definition at line 189 of file btree_int4.c.
#define penalty_num(result, olower, oupper, nlower, nupper)
References DatumGetPointer, sort-test::key, int32key::lower, penalty_num, PG_GETARG_POINTER, PG_RETURN_POINTER, and int32key::upper.
◆ gbt_int4_picksplit()
◆ gbt_int4_same()
◆ gbt_int4_union()
◆ gbt_int4eq()
static bool gbt_int4eq |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_int4ge()
static bool gbt_int4ge |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_int4gt()
static bool gbt_int4gt |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_int4key_cmp()
static int gbt_int4key_cmp |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_int4le()
static bool gbt_int4le |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_int4lt()
static bool gbt_int4lt |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ int4_dist()
Definition at line 96 of file btree_int4.c.
106 (
errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
107 errmsg(
"integer out of range")));
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define PG_RETURN_INT32(x)
static bool pg_sub_s32_overflow(int32 a, int32 b, int32 *result)
References a, Abs, b, ereport, errcode(), errmsg(), ERROR, PG_GETARG_INT32, PG_INT32_MIN, PG_RETURN_INT32, and pg_sub_s32_overflow().
◆ 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:=
{
8,
}
static bool gbt_int4lt(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_int4eq(const void *a, const void *b, FmgrInfo *flinfo)
static int gbt_int4key_cmp(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_int4ge(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_int4gt(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_int4le(const void *a, const void *b, FmgrInfo *flinfo)
static float8 gbt_int4_dist(const void *a, const void *b, FmgrInfo *flinfo)
Definition at line 79 of file btree_int4.c.
Referenced by gbt_int4_compress(), gbt_int4_consistent(), gbt_int4_distance(), gbt_int4_fetch(), gbt_int4_picksplit(), gbt_int4_same(), and gbt_int4_union().