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/sortsupport.h"
#include "utils/timestamp.h"
Go to the source code of this file.
Data Structures | |
struct | timeKEY |
Macros | |
#define | TimeADTGetDatumFast(X) PointerGetDatum(&(X)) |
Variables | |
static const gbtree_ninfo | tinfo |
#define TimeADTGetDatumFast | ( | X | ) | PointerGetDatum(&(X)) |
Definition at line 37 of file btree_time.c.
Datum gbt_time_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 156 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 198 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 111 of file btree_time.c.
References a, b, DatumGetIntervalP(), DirectFunctionCall2, i, INTERVAL_TO_SEC, time_mi_time(), and TimeADTGetDatumFast.
Datum gbt_time_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 220 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 190 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 272 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(), TimeADTGetDatumFast, and timeKEY::upper.
Datum gbt_time_picksplit | ( | PG_FUNCTION_ARGS | ) |
Definition at line 311 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 319 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 342 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 262 of file btree_time.c.
References gbt_num_union(), palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
|
static |
Definition at line 64 of file btree_time.c.
References a, b, DatumGetBool(), DirectFunctionCall2, time_eq(), and TimeADTGetDatumFast.
|
static |
Definition at line 53 of file btree_time.c.
References a, b, DatumGetBool(), DirectFunctionCall2, time_ge(), and TimeADTGetDatumFast.
|
static |
Definition at line 42 of file btree_time.c.
References a, b, DatumGetBool(), DirectFunctionCall2, time_gt(), and TimeADTGetDatumFast.
|
static |
Definition at line 97 of file btree_time.c.
References a, b, DatumGetInt32(), DirectFunctionCall2, timeKEY::lower, time_cmp(), TimeADTGetDatumFast, and timeKEY::upper.
|
static |
Definition at line 330 of file btree_time.c.
References DatumGetInt32(), DatumGetPointer(), DirectFunctionCall2, timeKEY::lower, time_cmp(), TimeADTGetDatumFast, x, and y.
Referenced by gbt_time_sortsupport().
|
static |
Definition at line 75 of file btree_time.c.
References a, b, DatumGetBool(), DirectFunctionCall2, time_le(), and TimeADTGetDatumFast.
|
static |
Definition at line 86 of file btree_time.c.
References a, b, DatumGetBool(), DirectFunctionCall2, time_lt(), and TimeADTGetDatumFast.
Datum gbt_timetz_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 164 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 237 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 141 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 124 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().