PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "btree_gist.h"
#include "btree_utils_num.h"
#include "common/int.h"
#include "utils/cash.h"
Go to the source code of this file.
Data Structures | |
struct | cashKEY |
Variables | |
static const gbtree_ninfo | tinfo |
Datum cash_dist | ( | PG_FUNCTION_ARGS | ) |
Definition at line 96 of file btree_cash.c.
References a, b, ereport, errcode(), errmsg(), ERROR, i64abs, PG_GETARG_CASH, PG_INT64_MIN, PG_RETURN_CASH, and pg_sub_s64_overflow().
Datum gbt_cash_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 120 of file btree_cash.c.
References gbt_num_compress(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_cash_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 136 of file btree_cash.c.
References DatumGetPointer(), gbt_num_consistent(), GIST_LEAF, GISTENTRY::key, sort-test::key, cashKEY::lower, PG_GETARG_CASH, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, tinfo, and cashKEY::upper.
Datum gbt_cash_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 160 of file btree_cash.c.
References DatumGetPointer(), gbt_num_distance(), GIST_LEAF, GISTENTRY::key, sort-test::key, cashKEY::lower, PG_GETARG_CASH, PG_GETARG_POINTER, PG_RETURN_FLOAT8, tinfo, and cashKEY::upper.
Datum gbt_cash_fetch | ( | PG_FUNCTION_ARGS | ) |
Definition at line 128 of file btree_cash.c.
References gbt_num_fetch(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_cash_penalty | ( | PG_FUNCTION_ARGS | ) |
Definition at line 189 of file btree_cash.c.
References DatumGetPointer(), sort-test::key, cashKEY::lower, penalty_num, PG_GETARG_POINTER, PG_RETURN_POINTER, and cashKEY::upper.
Datum gbt_cash_picksplit | ( | PG_FUNCTION_ARGS | ) |
Definition at line 201 of file btree_cash.c.
References gbt_num_picksplit(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_cash_same | ( | PG_FUNCTION_ARGS | ) |
Definition at line 209 of file btree_cash.c.
References gbt_num_same(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_cash_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 178 of file btree_cash.c.
References gbt_num_union(), palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
|
static |
Definition at line 56 of file btree_cash.c.
References a, b, cashKEY::lower, and cashKEY::upper.
PG_FUNCTION_INFO_V1 | ( | cash_dist | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_cash_compress | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_cash_consistent | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_cash_distance | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_cash_fetch | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_cash_penalty | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_cash_picksplit | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_cash_same | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_cash_union | ) |
|
static |
Definition at line 79 of file btree_cash.c.
Referenced by gbt_cash_compress(), gbt_cash_consistent(), gbt_cash_distance(), gbt_cash_fetch(), gbt_cash_picksplit(), gbt_cash_same(), and gbt_cash_union().