|
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, fb(), 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(), fb(), gbt_num_consistent(), GIST_LEAF, GISTENTRY::key, PG_GETARG_CASH, PG_GETARG_OID, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, and tinfo.
| Datum gbt_cash_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 161 of file btree_cash.c.
References DatumGetPointer(), fb(), gbt_num_distance(), GIST_LEAF, GISTENTRY::key, PG_GETARG_CASH, PG_GETARG_OID, PG_GETARG_POINTER, PG_RETURN_FLOAT8, and tinfo.
| 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 189 of file btree_cash.c.
References DatumGetPointer(), fb(), penalty_num, PG_GETARG_POINTER, and PG_RETURN_POINTER.
| 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 fb(), gbt_num_same(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_cash_sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 235 of file btree_cash.c.
References SortSupportData::comparator, fb(), gbt_cash_ssup_cmp(), PG_GETARG_POINTER, PG_RETURN_VOID, and SortSupportData::ssup_extra.
|
static |
Definition at line 220 of file btree_cash.c.
References DatumGetPointer(), fb(), x, and y.
Referenced by gbt_cash_sortsupport().
| Datum gbt_cash_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 179 of file btree_cash.c.
References fb(), gbt_num_union(), palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Definition at line 57 of file btree_cash.c.
| 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().