Go to the source code of this file.
|
| PG_FUNCTION_INFO_V1 (gbt_int2_compress) |
|
| PG_FUNCTION_INFO_V1 (gbt_int2_fetch) |
|
| PG_FUNCTION_INFO_V1 (gbt_int2_union) |
|
| PG_FUNCTION_INFO_V1 (gbt_int2_picksplit) |
|
| PG_FUNCTION_INFO_V1 (gbt_int2_consistent) |
|
| PG_FUNCTION_INFO_V1 (gbt_int2_distance) |
|
| PG_FUNCTION_INFO_V1 (gbt_int2_penalty) |
|
| PG_FUNCTION_INFO_V1 (gbt_int2_same) |
|
static bool | gbt_int2gt (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_int2ge (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_int2eq (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_int2le (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_int2lt (const void *a, const void *b, FmgrInfo *flinfo) |
|
static int | gbt_int2key_cmp (const void *a, const void *b, FmgrInfo *flinfo) |
|
static float8 | gbt_int2_dist (const void *a, const void *b, FmgrInfo *flinfo) |
|
| PG_FUNCTION_INFO_V1 (int2_dist) |
|
Datum | int2_dist (PG_FUNCTION_ARGS) |
|
Datum | gbt_int2_compress (PG_FUNCTION_ARGS) |
|
Datum | gbt_int2_fetch (PG_FUNCTION_ARGS) |
|
Datum | gbt_int2_consistent (PG_FUNCTION_ARGS) |
|
Datum | gbt_int2_distance (PG_FUNCTION_ARGS) |
|
Datum | gbt_int2_union (PG_FUNCTION_ARGS) |
|
Datum | gbt_int2_penalty (PG_FUNCTION_ARGS) |
|
Datum | gbt_int2_picksplit (PG_FUNCTION_ARGS) |
|
Datum | gbt_int2_same (PG_FUNCTION_ARGS) |
|
◆ int16KEY
◆ gbt_int2_compress()
◆ gbt_int2_consistent()
Definition at line 136 of file btree_int2.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_RETURN_BOOL(x)
#define PG_GETARG_INT16(n)
#define DatumGetPointer(X)
References DatumGetPointer, gbt_num_consistent(), GIST_LEAF, GISTENTRY::key, sort-test::key, int16key::lower, PG_GETARG_INT16, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, tinfo, and int16key::upper.
◆ gbt_int2_dist()
static float8 gbt_int2_dist |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_int2_distance()
Definition at line 159 of file btree_int2.c.
172 &
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, int16key::lower, PG_GETARG_INT16, PG_GETARG_POINTER, PG_RETURN_FLOAT8, tinfo, and int16key::upper.
◆ gbt_int2_fetch()
◆ gbt_int2_penalty()
Definition at line 188 of file btree_int2.c.
#define penalty_num(result, olower, oupper, nlower, nupper)
References DatumGetPointer, sort-test::key, int16key::lower, penalty_num, PG_GETARG_POINTER, PG_RETURN_POINTER, and int16key::upper.
◆ gbt_int2_picksplit()
◆ gbt_int2_same()
◆ gbt_int2_union()
◆ gbt_int2eq()
static bool gbt_int2eq |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_int2ge()
static bool gbt_int2ge |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_int2gt()
static bool gbt_int2gt |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_int2key_cmp()
static int gbt_int2key_cmp |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_int2le()
static bool gbt_int2le |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_int2lt()
static bool gbt_int2lt |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ int2_dist()
Definition at line 95 of file btree_int2.c.
105 (
errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
106 errmsg(
"smallint out of range")));
int errcode(int sqlerrcode)
int errmsg(const char *fmt,...)
#define ereport(elevel,...)
#define PG_RETURN_INT16(x)
static bool pg_sub_s16_overflow(int16 a, int16 b, int16 *result)
References a, Abs, b, ereport, errcode(), errmsg(), ERROR, PG_GETARG_INT16, PG_INT16_MIN, PG_RETURN_INT16, and pg_sub_s16_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:=
{
4,
}
static bool gbt_int2lt(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_int2le(const void *a, const void *b, FmgrInfo *flinfo)
static int gbt_int2key_cmp(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_int2ge(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_int2gt(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_int2eq(const void *a, const void *b, FmgrInfo *flinfo)
static float8 gbt_int2_dist(const void *a, const void *b, FmgrInfo *flinfo)
Definition at line 78 of file btree_int2.c.
Referenced by gbt_int2_compress(), gbt_int2_consistent(), gbt_int2_distance(), gbt_int2_fetch(), gbt_int2_picksplit(), gbt_int2_same(), and gbt_int2_union().