Go to the source code of this file.
|
| PG_FUNCTION_INFO_V1 (gbt_oid_compress) |
|
| PG_FUNCTION_INFO_V1 (gbt_oid_fetch) |
|
| PG_FUNCTION_INFO_V1 (gbt_oid_union) |
|
| PG_FUNCTION_INFO_V1 (gbt_oid_picksplit) |
|
| PG_FUNCTION_INFO_V1 (gbt_oid_consistent) |
|
| PG_FUNCTION_INFO_V1 (gbt_oid_distance) |
|
| PG_FUNCTION_INFO_V1 (gbt_oid_penalty) |
|
| PG_FUNCTION_INFO_V1 (gbt_oid_same) |
|
static bool | gbt_oidgt (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_oidge (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_oideq (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_oidle (const void *a, const void *b, FmgrInfo *flinfo) |
|
static bool | gbt_oidlt (const void *a, const void *b, FmgrInfo *flinfo) |
|
static int | gbt_oidkey_cmp (const void *a, const void *b, FmgrInfo *flinfo) |
|
static float8 | gbt_oid_dist (const void *a, const void *b, FmgrInfo *flinfo) |
|
| PG_FUNCTION_INFO_V1 (oid_dist) |
|
Datum | oid_dist (PG_FUNCTION_ARGS) |
|
Datum | gbt_oid_compress (PG_FUNCTION_ARGS) |
|
Datum | gbt_oid_fetch (PG_FUNCTION_ARGS) |
|
Datum | gbt_oid_consistent (PG_FUNCTION_ARGS) |
|
Datum | gbt_oid_distance (PG_FUNCTION_ARGS) |
|
Datum | gbt_oid_union (PG_FUNCTION_ARGS) |
|
Datum | gbt_oid_penalty (PG_FUNCTION_ARGS) |
|
Datum | gbt_oid_picksplit (PG_FUNCTION_ARGS) |
|
Datum | gbt_oid_same (PG_FUNCTION_ARGS) |
|
◆ gbt_oid_compress()
◆ gbt_oid_consistent()
Definition at line 137 of file btree_oid.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 DatumGetPointer(X)
References DatumGetPointer, gbt_num_consistent(), GIST_LEAF, GISTENTRY::key, sort-test::key, oidKEY::lower, PG_GETARG_OID, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, tinfo, and oidKEY::upper.
◆ gbt_oid_dist()
static float8 gbt_oid_dist |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_oid_distance()
Definition at line 160 of file btree_oid.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, oidKEY::lower, PG_GETARG_OID, PG_GETARG_POINTER, PG_RETURN_FLOAT8, tinfo, and oidKEY::upper.
◆ gbt_oid_fetch()
◆ gbt_oid_penalty()
Definition at line 189 of file btree_oid.c.
#define penalty_num(result, olower, oupper, nlower, nupper)
References DatumGetPointer, sort-test::key, oidKEY::lower, penalty_num, PG_GETARG_POINTER, PG_RETURN_POINTER, and oidKEY::upper.
◆ gbt_oid_picksplit()
◆ gbt_oid_same()
◆ gbt_oid_union()
◆ gbt_oideq()
static bool gbt_oideq |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
Definition at line 39 of file btree_oid.c.
41 return (*((
const Oid *)
a) == *((
const Oid *)
b));
References a, and b.
◆ gbt_oidge()
static bool gbt_oidge |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
Definition at line 34 of file btree_oid.c.
36 return (*((
const Oid *)
a) >= *((
const Oid *)
b));
References a, and b.
◆ gbt_oidgt()
static bool gbt_oidgt |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
Definition at line 29 of file btree_oid.c.
31 return (*((
const Oid *)
a) > *((
const Oid *)
b));
References a, and b.
◆ gbt_oidkey_cmp()
static int gbt_oidkey_cmp |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
◆ gbt_oidle()
static bool gbt_oidle |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
Definition at line 44 of file btree_oid.c.
46 return (*((
const Oid *)
a) <= *((
const Oid *)
b));
References a, and b.
◆ gbt_oidlt()
static bool gbt_oidlt |
( |
const void * |
a, |
|
|
const void * |
b, |
|
|
FmgrInfo * |
flinfo |
|
) |
| |
|
static |
Definition at line 49 of file btree_oid.c.
51 return (*((
const Oid *)
a) < *((
const Oid *)
b));
References a, and b.
◆ oid_dist()
◆ 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_oidlt(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_oidle(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_oideq(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_oidge(const void *a, const void *b, FmgrInfo *flinfo)
static int gbt_oidkey_cmp(const void *a, const void *b, FmgrInfo *flinfo)
static bool gbt_oidgt(const void *a, const void *b, FmgrInfo *flinfo)
static float8 gbt_oid_dist(const void *a, const void *b, FmgrInfo *flinfo)
Definition at line 84 of file btree_oid.c.
Referenced by gbt_oid_compress(), gbt_oid_consistent(), gbt_oid_distance(), gbt_oid_fetch(), gbt_oid_picksplit(), gbt_oid_same(), and gbt_oid_union().