|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "btree_gist.h"#include "btree_utils_num.h"#include "utils/float.h"#include "utils/rel.h"#include "utils/sortsupport.h"
Go to the source code of this file.
Data Structures | |
| struct | float4key |
Typedefs | |
| typedef struct float4key | float4KEY |
Variables | |
| static const gbtree_ninfo | tinfo |
| Datum float4_dist | ( | PG_FUNCTION_ARGS | ) |
Definition at line 96 of file btree_float4.c.
References a, b, float_overflow_error(), PG_GETARG_FLOAT4, PG_RETURN_FLOAT4, and unlikely.
| Datum gbt_float4_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 115 of file btree_float4.c.
References gbt_num_compress(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_float4_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 131 of file btree_float4.c.
References DatumGetPointer(), gbt_num_consistent(), GIST_LEAF, GISTENTRY::key, sort-test::key, float4key::lower, PG_GETARG_FLOAT4, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, tinfo, and float4key::upper.
| Datum gbt_float4_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 154 of file btree_float4.c.
References DatumGetPointer(), gbt_num_distance(), GIST_LEAF, GISTENTRY::key, sort-test::key, float4key::lower, PG_GETARG_FLOAT4, PG_GETARG_POINTER, PG_RETURN_FLOAT8, tinfo, and float4key::upper.
| Datum gbt_float4_fetch | ( | PG_FUNCTION_ARGS | ) |
Definition at line 123 of file btree_float4.c.
References gbt_num_fetch(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_float4_penalty | ( | PG_FUNCTION_ARGS | ) |
Definition at line 181 of file btree_float4.c.
References DatumGetPointer(), sort-test::key, float4key::lower, penalty_num, PG_GETARG_POINTER, PG_RETURN_POINTER, and float4key::upper.
| Datum gbt_float4_picksplit | ( | PG_FUNCTION_ARGS | ) |
Definition at line 193 of file btree_float4.c.
References gbt_num_picksplit(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_float4_same | ( | PG_FUNCTION_ARGS | ) |
Definition at line 201 of file btree_float4.c.
References gbt_num_same(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_float4_sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 222 of file btree_float4.c.
References SortSupportData::comparator, gbt_float4_ssup_cmp(), PG_GETARG_POINTER, PG_RETURN_VOID, and SortSupportData::ssup_extra.
|
static |
Definition at line 212 of file btree_float4.c.
References DatumGetPointer(), float4_cmp_internal(), float4key::lower, x, and y.
Referenced by gbt_float4_sortsupport().
| Datum gbt_float4_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 171 of file btree_float4.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_float4.c.
References a, b, float4key::lower, and float4key::upper.
|
static |
|
static |
| PG_FUNCTION_INFO_V1 | ( | float4_dist | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_float4_compress | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_float4_consistent | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_float4_distance | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_float4_fetch | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_float4_penalty | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_float4_picksplit | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_float4_same | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_float4_sortsupport | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_float4_union | ) |
|
static |
Definition at line 79 of file btree_float4.c.
Referenced by gbt_float4_compress(), gbt_float4_consistent(), gbt_float4_distance(), gbt_float4_fetch(), gbt_float4_picksplit(), gbt_float4_same(), and gbt_float4_union().