PostgreSQL Source Code git master
|
#include "postgres.h"
#include "btree_gist.h"
#include "btree_utils_num.h"
#include "common/int.h"
#include "utils/sortsupport.h"
Go to the source code of this file.
Data Structures | |
struct | int64key |
Typedefs | |
typedef struct int64key | int64KEY |
Variables | |
static const gbtree_ninfo | tinfo |
Datum gbt_int8_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 120 of file btree_int8.c.
References gbt_num_compress(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_int8_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 136 of file btree_int8.c.
References DatumGetPointer(), gbt_num_consistent(), GIST_LEAF, GISTENTRY::key, sort-test::key, int64key::lower, PG_GETARG_INT64, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, tinfo, and int64key::upper.
Datum gbt_int8_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 158 of file btree_int8.c.
References DatumGetPointer(), gbt_num_distance(), GIST_LEAF, GISTENTRY::key, sort-test::key, int64key::lower, PG_GETARG_INT64, PG_GETARG_POINTER, PG_RETURN_FLOAT8, tinfo, and int64key::upper.
Datum gbt_int8_fetch | ( | PG_FUNCTION_ARGS | ) |
Definition at line 128 of file btree_int8.c.
References gbt_num_fetch(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_int8_penalty | ( | PG_FUNCTION_ARGS | ) |
Definition at line 185 of file btree_int8.c.
References DatumGetPointer(), sort-test::key, int64key::lower, penalty_num, PG_GETARG_POINTER, PG_RETURN_POINTER, and int64key::upper.
Datum gbt_int8_picksplit | ( | PG_FUNCTION_ARGS | ) |
Definition at line 197 of file btree_int8.c.
References gbt_num_picksplit(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_int8_same | ( | PG_FUNCTION_ARGS | ) |
Definition at line 205 of file btree_int8.c.
References gbt_num_same(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_int8_sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 232 of file btree_int8.c.
References SortSupportData::comparator, gbt_int8_ssup_cmp(), PG_GETARG_POINTER, and PG_RETURN_VOID.
|
static |
Definition at line 216 of file btree_int8.c.
References DatumGetPointer(), int64key::lower, x, and y.
Referenced by gbt_int8_sortsupport().
Datum gbt_int8_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 175 of file btree_int8.c.
References gbt_num_union(), palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
|
static |
|
static |
|
static |
|
static |
Definition at line 56 of file btree_int8.c.
References a, b, int64key::lower, and int64key::upper.
|
static |
|
static |
Datum int8_dist | ( | PG_FUNCTION_ARGS | ) |
Definition at line 96 of file btree_int8.c.
References a, b, ereport, errcode(), errmsg(), ERROR, PG_GETARG_INT64, PG_INT64_MIN, PG_RETURN_INT64, and pg_sub_s64_overflow().
PG_FUNCTION_INFO_V1 | ( | gbt_int8_compress | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_int8_consistent | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_int8_distance | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_int8_fetch | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_int8_penalty | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_int8_picksplit | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_int8_same | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_int8_sortsupport | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_int8_union | ) |
PG_FUNCTION_INFO_V1 | ( | int8_dist | ) |
|
static |
Definition at line 79 of file btree_int8.c.
Referenced by gbt_int8_compress(), gbt_int8_consistent(), gbt_int8_distance(), gbt_int8_fetch(), gbt_int8_picksplit(), gbt_int8_same(), and gbt_int8_union().