PostgreSQL Source Code: contrib/btree_gist/btree_int2.c File Reference (original) (raw)

Go to the source code of this file.
◆ int16KEY
◆ gbt_int2_compress()
◆ gbt_int2_consistent()
Definition at line 137 of file btree_int2.c.
138{
142#ifdef NOT_USED
144#endif
148
149
150 *recheck = false;
151
154
157}
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)
static Pointer DatumGetPointer(Datum X)
References DatumGetPointer(), fb(), gbt_num_consistent(), GIST_LEAF, GISTENTRY::key, PG_GETARG_INT16, PG_GETARG_OID, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, and tinfo.
◆ gbt_int2_dist()
◆ gbt_int2_distance()
Definition at line 160 of file btree_int2.c.
161{
164#ifdef NOT_USED
166#endif
169
172
174 &tinfo, fcinfo->flinfo));
175}
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(), fb(), gbt_num_distance(), GIST_LEAF, GISTENTRY::key, PG_GETARG_INT16, PG_GETARG_OID, PG_GETARG_POINTER, PG_RETURN_FLOAT8, and tinfo.
◆ gbt_int2_fetch()
◆ gbt_int2_penalty()
◆ gbt_int2_picksplit()
◆ gbt_int2_same()
◆ gbt_int2_sortsupport()
◆ gbt_int2_ssup_cmp()
◆ gbt_int2_union()
◆ gbt_int2eq()
◆ gbt_int2ge()
◆ gbt_int2gt()
◆ gbt_int2key_cmp()
Definition at line 57 of file btree_int2.c.
58{
61
62 if (ia->lower == ib->lower)
63 {
64 if (ia->upper == ib->upper)
65 return 0;
66
67 return (ia->upper > ib->upper) ? 1 : -1;
68 }
69
70 return (ia->lower > ib->lower) ? 1 : -1;
71}
◆ gbt_int2le()
◆ gbt_int2lt()
◆ int2_dist()
Definition at line 97 of file btree_int2.c.
98{
103
108 errmsg("smallint out of range")));
109
111
113}
int errcode(int sqlerrcode)
#define ereport(elevel,...)
#define PG_RETURN_INT16(x)
static bool pg_sub_s16_overflow(int16 a, int16 b, int16 *result)
References a, b, ereport, errcode(), errmsg, ERROR, fb(), PG_GETARG_INT16, PG_INT16_MIN, PG_RETURN_INT16, and pg_sub_s16_overflow().
◆ PG_FUNCTION_INFO_V1() [1/10]
◆ PG_FUNCTION_INFO_V1() [2/10]
◆ PG_FUNCTION_INFO_V1() [3/10]
◆ PG_FUNCTION_INFO_V1() [4/10]
◆ PG_FUNCTION_INFO_V1() [5/10]
◆ PG_FUNCTION_INFO_V1() [6/10]
◆ PG_FUNCTION_INFO_V1() [7/10]
◆ PG_FUNCTION_INFO_V1() [8/10]
◆ PG_FUNCTION_INFO_V1() [9/10]
◆ PG_FUNCTION_INFO_V1() [10/10]
◆ 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 80 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().