|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "btree_gist.h"#include "btree_utils_num.h"#include "common/int.h"#include "utils/rel.h"#include "utils/sortsupport.h"
Go to the source code of this file.
Data Structures | |
| struct | int32key |
Typedefs | |
| typedef struct int32key | int32KEY |
Variables | |
| static const gbtree_ninfo | tinfo |
| Datum gbt_int4_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 119 of file btree_int4.c.
References gbt_num_compress(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_int4_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 135 of file btree_int4.c.
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.
| Datum gbt_int4_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 157 of file btree_int4.c.
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.
| Datum gbt_int4_fetch | ( | PG_FUNCTION_ARGS | ) |
Definition at line 127 of file btree_int4.c.
References gbt_num_fetch(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_int4_penalty | ( | PG_FUNCTION_ARGS | ) |
Definition at line 184 of file btree_int4.c.
References DatumGetPointer(), sort-test::key, int32key::lower, penalty_num, PG_GETARG_POINTER, PG_RETURN_POINTER, and int32key::upper.
| Datum gbt_int4_picksplit | ( | PG_FUNCTION_ARGS | ) |
Definition at line 196 of file btree_int4.c.
References gbt_num_picksplit(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_int4_same | ( | PG_FUNCTION_ARGS | ) |
Definition at line 204 of file btree_int4.c.
References gbt_num_same(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_int4_sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 230 of file btree_int4.c.
References SortSupportData::comparator, gbt_int4_ssup_cmp(), PG_GETARG_POINTER, and PG_RETURN_VOID.
|
static |
Definition at line 215 of file btree_int4.c.
References a, b, DatumGetPointer(), and int32key::lower.
Referenced by gbt_int4_sortsupport().
| Datum gbt_int4_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 174 of file btree_int4.c.
References gbt_num_union(), palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
|
static |
|
static |
|
static |
|
static |
Definition at line 55 of file btree_int4.c.
References a, b, int32key::lower, and int32key::upper.
|
static |
|
static |
| Datum int4_dist | ( | PG_FUNCTION_ARGS | ) |
Definition at line 95 of file btree_int4.c.
References a, b, ereport, errcode(), errmsg(), ERROR, PG_GETARG_INT32, PG_INT32_MIN, PG_RETURN_INT32, and pg_sub_s32_overflow().
| PG_FUNCTION_INFO_V1 | ( | gbt_int4_compress | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_int4_consistent | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_int4_distance | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_int4_fetch | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_int4_penalty | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_int4_picksplit | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_int4_same | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_int4_sortsupport | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_int4_union | ) |
| PG_FUNCTION_INFO_V1 | ( | int4_dist | ) |
|
static |
Definition at line 78 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().