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/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 36 of file btree_time.c.
Datum gbt_time_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 159 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 202 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 112 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 224 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 194 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 278 of file btree_time.c.
References DatumGetIntervalP(), DatumGetPointer(), DirectFunctionCall2, INTERVAL_TO_SEC, sort-test::key, timeKEY::lower, Max, PG_GETARG_POINTER, PG_RETURN_POINTER, res, time_mi_time(), TimeADTGetDatumFast, and timeKEY::upper.
Datum gbt_time_picksplit | ( | PG_FUNCTION_ARGS | ) |
Definition at line 318 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 326 of file btree_time.c.
References gbt_num_same(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Datum gbt_time_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 267 of file btree_time.c.
References gbt_num_union(), palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
|
static |
Definition at line 63 of file btree_time.c.
References a, b, DatumGetBool(), DirectFunctionCall2, time_eq(), and TimeADTGetDatumFast.
|
static |
Definition at line 52 of file btree_time.c.
References a, b, DatumGetBool(), DirectFunctionCall2, time_ge(), and TimeADTGetDatumFast.
|
static |
Definition at line 41 of file btree_time.c.
References a, b, DatumGetBool(), DirectFunctionCall2, time_gt(), and TimeADTGetDatumFast.
|
static |
Definition at line 98 of file btree_time.c.
References a, b, DatumGetInt32(), DirectFunctionCall2, timeKEY::lower, res, time_cmp(), TimeADTGetDatumFast, and timeKEY::upper.
|
static |
Definition at line 74 of file btree_time.c.
References a, b, DatumGetBool(), DirectFunctionCall2, time_le(), and TimeADTGetDatumFast.
|
static |
Definition at line 85 of file btree_time.c.
References a, b, DatumGetBool(), DirectFunctionCall2, time_lt(), and TimeADTGetDatumFast.
Datum gbt_timetz_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 168 of file btree_time.c.
References DatumGetTimeTzADTP(), gistentryinit, 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 241 of file btree_time.c.
References DatumGetPointer(), gbt_num_consistent(), GIST_LEAF, 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_union | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_timetz_compress | ) |
PG_FUNCTION_INFO_V1 | ( | gbt_timetz_consistent | ) |
PG_FUNCTION_INFO_V1 | ( | time_dist | ) |
Datum time_dist | ( | PG_FUNCTION_ARGS | ) |
Definition at line 142 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 125 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().