|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "btree_gist.h"#include "btree_utils_num.h"#include "utils/fmgrprotos.h"#include "utils/date.h"#include "utils/rel.h"#include "utils/sortsupport.h"
Go to the source code of this file.
Data Structures | |
| struct | dateKEY |
Variables | |
| static const gbtree_ninfo | tinfo |
| Datum date_dist | ( | PG_FUNCTION_ARGS | ) |
Definition at line 120 of file btree_date.c.
References date_mi(), DatumGetInt32(), DirectFunctionCall2, PG_GETARG_DATUM, and PG_RETURN_INT32.
| Datum gbt_date_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 136 of file btree_date.c.
References gbt_num_compress(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_date_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 152 of file btree_date.c.
References DatumGetPointer(), gbt_num_consistent(), GIST_LEAF, GISTENTRY::key, sort-test::key, dateKEY::lower, PG_GETARG_DATEADT, PG_GETARG_POINTER, PG_GETARG_UINT16, PG_RETURN_BOOL, tinfo, and dateKEY::upper.
| Datum gbt_date_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 175 of file btree_date.c.
References DatumGetPointer(), gbt_num_distance(), GIST_LEAF, GISTENTRY::key, sort-test::key, dateKEY::lower, PG_GETARG_DATEADT, PG_GETARG_POINTER, PG_RETURN_FLOAT8, tinfo, and dateKEY::upper.
| Datum gbt_date_fetch | ( | PG_FUNCTION_ARGS | ) |
Definition at line 144 of file btree_date.c.
References gbt_num_fetch(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_date_penalty | ( | PG_FUNCTION_ARGS | ) |
Definition at line 202 of file btree_date.c.
References date_mi(), DateADTGetDatum(), DatumGetInt32(), DatumGetPointer(), DirectFunctionCall2, sort-test::key, dateKEY::lower, Max, PG_GETARG_POINTER, PG_RETURN_POINTER, and dateKEY::upper.
| Datum gbt_date_picksplit | ( | PG_FUNCTION_ARGS | ) |
Definition at line 238 of file btree_date.c.
References gbt_num_picksplit(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_date_same | ( | PG_FUNCTION_ARGS | ) |
Definition at line 246 of file btree_date.c.
References gbt_num_same(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_date_sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 269 of file btree_date.c.
References SortSupportData::comparator, gbt_date_ssup_cmp(), PG_GETARG_POINTER, PG_RETURN_VOID, and SortSupportData::ssup_extra.
|
static |
Definition at line 257 of file btree_date.c.
References date_cmp(), DateADTGetDatum(), DatumGetInt32(), DatumGetPointer(), DirectFunctionCall2, dateKEY::lower, x, and y.
Referenced by gbt_date_sortsupport().
| Datum gbt_date_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 192 of file btree_date.c.
References gbt_num_union(), palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
|
static |
Definition at line 47 of file btree_date.c.
References a, b, date_eq(), DateADTGetDatum(), DatumGetBool(), and DirectFunctionCall2.
|
static |
Definition at line 39 of file btree_date.c.
References a, b, date_ge(), DateADTGetDatum(), DatumGetBool(), and DirectFunctionCall2.
|
static |
Definition at line 31 of file btree_date.c.
References a, b, date_gt(), DateADTGetDatum(), DatumGetBool(), and DirectFunctionCall2.
|
static |
Definition at line 74 of file btree_date.c.
References a, b, date_cmp(), DateADTGetDatum(), DatumGetInt32(), DirectFunctionCall2, dateKEY::lower, and dateKEY::upper.
|
static |
Definition at line 56 of file btree_date.c.
References a, b, date_le(), DateADTGetDatum(), DatumGetBool(), and DirectFunctionCall2.
|
static |
Definition at line 64 of file btree_date.c.
References a, b, date_lt(), DateADTGetDatum(), DatumGetBool(), and DirectFunctionCall2.
Definition at line 92 of file btree_date.c.
References a, b, date_mi(), DateADTGetDatum(), DatumGetInt32(), and DirectFunctionCall2.
| PG_FUNCTION_INFO_V1 | ( | date_dist | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_date_compress | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_date_consistent | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_date_distance | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_date_fetch | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_date_penalty | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_date_picksplit | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_date_same | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_date_sortsupport | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_date_union | ) |
|
static |
Definition at line 103 of file btree_date.c.
Referenced by gbt_date_compress(), gbt_date_consistent(), gbt_date_distance(), gbt_date_fetch(), gbt_date_picksplit(), gbt_date_same(), and gbt_date_union().