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"
#include "utils/timestamp.h"
Go to the source code of this file.
Data Structures | |
struct | timeKEY |
Variables | |
static const gbtree_ninfo | tinfo |
Datum gbt_time_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 150 of file btree_time.c.
References gbt_num_compress(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_time_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 192 of file btree_time.c.
References DatumGetPointer(), gbt_num_consistent(), GIST_LEAF, GISTENTRY::key, sort-test::key, timeKEY::lower, PG_GETARG_POINTER, PG_GETARG_TIMEADT, PG_GETARG_UINT16, PG_RETURN_BOOL, tinfo, and timeKEY::upper.
Definition at line 105 of file btree_time.c.
References a, b, DatumGetIntervalP(), DirectFunctionCall2, i, INTERVAL_TO_SEC, time_mi_time(), and TimeADTGetDatum().
Datum gbt_time_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 214 of file btree_time.c.
References DatumGetPointer(), gbt_num_distance(), GIST_LEAF, GISTENTRY::key, sort-test::key, timeKEY::lower, PG_GETARG_POINTER, PG_GETARG_TIMEADT, PG_RETURN_FLOAT8, tinfo, and timeKEY::upper.
Datum gbt_time_fetch | ( | PG_FUNCTION_ARGS | ) |
Definition at line 184 of file btree_time.c.
References gbt_num_fetch(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_time_penalty | ( | PG_FUNCTION_ARGS | ) |
Definition at line 266 of file btree_time.c.
References DatumGetIntervalP(), DatumGetPointer(), DirectFunctionCall2, INTERVAL_TO_SEC, sort-test::key, timeKEY::lower, Max, PG_GETARG_POINTER, PG_RETURN_POINTER, time_mi_time(), TimeADTGetDatum(), and timeKEY::upper.
Datum gbt_time_picksplit | ( | PG_FUNCTION_ARGS | ) |
Definition at line 305 of file btree_time.c.
References gbt_num_picksplit(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_time_same | ( | PG_FUNCTION_ARGS | ) |
Definition at line 313 of file btree_time.c.
References gbt_num_same(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_time_sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 336 of file btree_time.c.
References SortSupportData::comparator, gbt_timekey_ssup_cmp(), PG_GETARG_POINTER, PG_RETURN_VOID, and SortSupportData::ssup_extra.
Datum gbt_time_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 256 of file btree_time.c.
References gbt_num_union(), palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
|
static |
Definition at line 58 of file btree_time.c.
References a, b, DatumGetBool(), DirectFunctionCall2, time_eq(), and TimeADTGetDatum().
|
static |
Definition at line 47 of file btree_time.c.
References a, b, DatumGetBool(), DirectFunctionCall2, time_ge(), and TimeADTGetDatum().
|
static |
Definition at line 36 of file btree_time.c.
References a, b, DatumGetBool(), DirectFunctionCall2, time_gt(), and TimeADTGetDatum().
|
static |
Definition at line 91 of file btree_time.c.
References a, b, DatumGetInt32(), DirectFunctionCall2, timeKEY::lower, time_cmp(), TimeADTGetDatum(), and timeKEY::upper.
|
static |
Definition at line 324 of file btree_time.c.
References DatumGetInt32(), DatumGetPointer(), DirectFunctionCall2, timeKEY::lower, time_cmp(), TimeADTGetDatum(), x, and y.
Referenced by gbt_time_sortsupport().
|
static |
Definition at line 69 of file btree_time.c.
References a, b, DatumGetBool(), DirectFunctionCall2, time_le(), and TimeADTGetDatum().
|
static |
Definition at line 80 of file btree_time.c.
References a, b, DatumGetBool(), DirectFunctionCall2, time_lt(), and TimeADTGetDatum().
Datum gbt_timetz_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 158 of file btree_time.c.
References DatumGetTimeTzADTP(), gistentryinit, INT64CONST, GISTENTRY::key, GISTENTRY::leafkey, timeKEY::lower, GISTENTRY::offset, GISTENTRY::page, palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, PointerGetDatum(), GISTENTRY::rel, TimeTzADT::time, timeKEY::upper, and TimeTzADT::zone.
Datum gbt_timetz_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 231 of file btree_time.c.
References DatumGetPointer(), gbt_num_consistent(), GIST_LEAF, INT64CONST, GISTENTRY::key, sort-test::key, timeKEY::lower, PG_GETARG_POINTER, PG_GETARG_TIMETZADT_P, PG_GETARG_UINT16, PG_RETURN_BOOL, TimeTzADT::time, tinfo, timeKEY::upper, and TimeTzADT::zone.
PG_FUNCTION_INFO_V1 | ( | gbt_time_compress | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_time_consistent | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_time_distance | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_time_fetch | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_time_penalty | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_time_picksplit | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_time_same | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_time_sortsupport | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_time_union | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_timetz_compress | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_timetz_consistent | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_timetz_sortsupport | ) |
PG_FUNCTION_INFO_V1 | ( | time_dist | ) |
Datum time_dist | ( | PG_FUNCTION_ARGS | ) |
Definition at line 135 of file btree_time.c.
References abs_interval(), DatumGetIntervalP(), DirectFunctionCall2, PG_GETARG_DATUM, PG_RETURN_INTERVAL_P, and time_mi_time().
|
static |
Definition at line 118 of file btree_time.c.
Referenced by gbt_time_compress(), gbt_time_consistent(), gbt_time_distance(), gbt_time_fetch(), gbt_time_picksplit(), gbt_time_same(), gbt_time_union(), and gbt_timetz_consistent().