PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <math.h>
#include <float.h>
#include "btree_gist.h"
#include "btree_utils_var.h"
#include "utils/builtins.h"
#include "utils/numeric.h"
#include "utils/rel.h"
Go to the source code of this file.
Variables | |
static const gbtree_vinfo | tinfo |
|
static |
Definition at line 69 of file btree_numeric.c.
References a, b, DatumGetInt32(), DirectFunctionCall2, numeric_cmp(), and PointerGetDatum().
Datum gbt_numeric_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 98 of file btree_numeric.c.
References gbt_var_compress(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_numeric_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 108 of file btree_numeric.c.
References DatumGetNumeric(), DatumGetPointer(), gbt_var_consistent(), gbt_var_key_readable(), GIST_LEAF, GISTENTRY::key, sort-test::key, PG_GET_COLLATION, PG_GETARG_DATUM, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, and tinfo.
|
static |
Definition at line 45 of file btree_numeric.c.
References a, b, DatumGetBool(), DirectFunctionCall2, numeric_eq(), and PointerGetDatum().
|
static |
Definition at line 37 of file btree_numeric.c.
References a, b, DatumGetBool(), DirectFunctionCall2, numeric_ge(), and PointerGetDatum().
|
static |
Definition at line 29 of file btree_numeric.c.
References a, b, DatumGetBool(), DirectFunctionCall2, numeric_gt(), and PointerGetDatum().
|
static |
Definition at line 53 of file btree_numeric.c.
References a, b, DatumGetBool(), DirectFunctionCall2, numeric_le(), and PointerGetDatum().
|
static |
Definition at line 61 of file btree_numeric.c.
References a, b, DatumGetBool(), DirectFunctionCall2, numeric_lt(), and PointerGetDatum().
Datum gbt_numeric_penalty | ( | PG_FUNCTION_ARGS | ) |
Definition at line 154 of file btree_numeric.c.
References DatumGetFloat8(), DatumGetNumeric(), DatumGetPointer(), DirectFunctionCall1, DirectFunctionCall2, gbt_var_bin_union(), gbt_var_key_copy(), gbt_var_key_readable(), int64_to_numeric(), GISTENTRY::key, GBT_VARKEY_R::lower, numeric_div(), numeric_float8_no_overflow(), numeric_gt(), numeric_is_nan(), numeric_sub(), NumericGetDatum(), PG_GET_COLLATION, PG_GETARG_POINTER, PG_RETURN_POINTER, PointerGetDatum(), tinfo, and GBT_VARKEY_R::upper.
Datum gbt_numeric_picksplit | ( | PG_FUNCTION_ARGS | ) |
Definition at line 221 of file btree_numeric.c.
References gbt_var_picksplit(), PG_GET_COLLATION, PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_numeric_same | ( | PG_FUNCTION_ARGS | ) |
Definition at line 142 of file btree_numeric.c.
References gbt_var_same(), PG_GET_COLLATION, PG_GETARG_DATUM, PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_numeric_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 131 of file btree_numeric.c.
References gbt_var_union(), PG_GET_COLLATION, PG_GETARG_POINTER, PG_RETURN_POINTER, size, and tinfo.
PG_FUNCTION_INFO_V1 | ( | gbt_numeric_compress | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_numeric_consistent | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_numeric_penalty | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_numeric_picksplit | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_numeric_same | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_numeric_union | ) |
|
static |
Definition at line 77 of file btree_numeric.c.
Referenced by gbt_numeric_compress(), gbt_numeric_consistent(), gbt_numeric_penalty(), gbt_numeric_picksplit(), gbt_numeric_same(), and gbt_numeric_union().