|
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"#include "utils/rel.h"#include "utils/sortsupport.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 97 of file btree_cash.c.
References a, b, ereport, errcode(), errmsg(), ERROR, PG_GETARG_CASH, PG_INT64_MIN, PG_RETURN_CASH, and pg_sub_s64_overflow().
| Datum gbt_cash_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 121 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 137 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 129 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 187 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 199 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 207 of file btree_cash.c.
References gbt_num_same(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_cash_sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 233 of file btree_cash.c.
References SortSupportData::comparator, gbt_cash_ssup_cmp(), PG_GETARG_POINTER, PG_RETURN_VOID, and SortSupportData::ssup_extra.
|
static |
Definition at line 218 of file btree_cash.c.
References DatumGetPointer(), cashKEY::lower, x, and y.
Referenced by gbt_cash_sortsupport().
| Datum gbt_cash_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 177 of file btree_cash.c.
References gbt_num_union(), palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
|
static |
|
static |
|
static |
|
static |
Definition at line 57 of file btree_cash.c.
References a, b, cashKEY::lower, and cashKEY::upper.
|
static |
|
static |
| 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_sortsupport | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_cash_union | ) |
|
static |
Definition at line 80 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().