|
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 113 of file btree_float4.c.
References a, b, fb(), float_overflow_error(), get_float4_infinity(), PG_GETARG_FLOAT4, PG_RETURN_FLOAT4, and unlikely.
| Datum gbt_float4_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 140 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 156 of file btree_float4.c.
References DatumGetPointer(), fb(), gbt_num_consistent(), GIST_LEAF, GISTENTRY::key, PG_GETARG_FLOAT4, PG_GETARG_OID, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, and tinfo.
Definition at line 75 of file btree_float4.c.
References a, b, fb(), get_float8_infinity(), and unlikely.
| Datum gbt_float4_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 180 of file btree_float4.c.
References DatumGetPointer(), fb(), gbt_num_distance(), GIST_LEAF, GISTENTRY::key, PG_GETARG_FLOAT4, PG_GETARG_OID, PG_GETARG_POINTER, PG_RETURN_FLOAT8, and tinfo.
| Datum gbt_float4_fetch | ( | PG_FUNCTION_ARGS | ) |
Definition at line 148 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 208 of file btree_float4.c.
References DatumGetPointer(), fb(), float_penalty_num, PG_GETARG_POINTER, PG_RETURN_POINTER, and result.
| Datum gbt_float4_picksplit | ( | PG_FUNCTION_ARGS | ) |
Definition at line 220 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 228 of file btree_float4.c.
References fb(), gbt_num_same(), PG_GETARG_POINTER, PG_RETURN_POINTER, result, and tinfo.
| Datum gbt_float4_sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 249 of file btree_float4.c.
References SortSupportData::comparator, fb(), gbt_float4_ssup_cmp(), PG_GETARG_POINTER, PG_RETURN_VOID, and SortSupportData::ssup_extra.
|
static |
Definition at line 239 of file btree_float4.c.
References DatumGetPointer(), fb(), float4_cmp_internal(), x, and y.
Referenced by gbt_float4_sortsupport().
| Datum gbt_float4_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 198 of file btree_float4.c.
References fb(), gbt_num_union(), palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Definition at line 62 of file btree_float4.c.
References a, b, fb(), and float4_cmp_internal().
| 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 96 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().