|
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, fb(), 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(), 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.
| Datum gbt_float4_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 155 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 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 183 of file btree_float4.c.
References DatumGetPointer(), fb(), penalty_num, PG_GETARG_POINTER, and PG_RETURN_POINTER.
| Datum gbt_float4_picksplit | ( | PG_FUNCTION_ARGS | ) |
Definition at line 195 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 203 of file btree_float4.c.
References fb(), gbt_num_same(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_float4_sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 224 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 214 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 173 of file btree_float4.c.
References fb(), gbt_num_union(), palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Definition at line 56 of file btree_float4.c.
| 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().