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"
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 119 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 137 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 153 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 177 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 145 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 206 of file btree_date.c.
References date_mi(), DateADTGetDatum(), DatumGetInt32(), DatumGetPointer(), DirectFunctionCall2, sort-test::key, dateKEY::lower, Max, PG_GETARG_POINTER, PG_RETURN_POINTER, res, and dateKEY::upper.
Datum gbt_date_picksplit | ( | PG_FUNCTION_ARGS | ) |
Definition at line 243 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 251 of file btree_date.c.
References gbt_num_same(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_date_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 195 of file btree_date.c.
References gbt_num_union(), palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
|
static |
Definition at line 46 of file btree_date.c.
References a, b, date_eq(), DateADTGetDatum(), DatumGetBool(), and DirectFunctionCall2.
|
static |
Definition at line 38 of file btree_date.c.
References a, b, date_ge(), DateADTGetDatum(), DatumGetBool(), and DirectFunctionCall2.
|
static |
Definition at line 30 of file btree_date.c.
References a, b, date_gt(), DateADTGetDatum(), DatumGetBool(), and DirectFunctionCall2.
|
static |
Definition at line 73 of file btree_date.c.
References a, b, date_cmp(), DateADTGetDatum(), DatumGetInt32(), DirectFunctionCall2, dateKEY::lower, res, and dateKEY::upper.
|
static |
Definition at line 55 of file btree_date.c.
References a, b, date_le(), DateADTGetDatum(), DatumGetBool(), and DirectFunctionCall2.
|
static |
Definition at line 63 of file btree_date.c.
References a, b, date_lt(), DateADTGetDatum(), DatumGetBool(), and DirectFunctionCall2.
Definition at line 91 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_union | ) |
|
static |
Definition at line 102 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().