|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <limits.h>#include "btree_gist.h"#include "btree_utils_num.h"#include "utils/fmgrprotos.h"#include "utils/timestamp.h"#include "utils/float.h"#include "utils/rel.h"#include "utils/sortsupport.h"
Go to the source code of this file.
Data Structures | |
| struct | tsKEY |
Macros | |
| #define | penalty_check_max_float(val) |
Variables | |
| static const gbtree_ninfo | tinfo |
Definition at line 339 of file btree_ts.c.
| Datum gbt_ts_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 200 of file btree_ts.c.
References gbt_num_compress(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_ts_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 242 of file btree_ts.c.
References DatumGetPointer(), fb(), gbt_num_consistent(), GIST_LEAF, GISTENTRY::key, PG_GETARG_OID, PG_GETARG_POINTER, PG_GETARG_TIMESTAMP, PG_GETARG_UINT16, PG_RETURN_BOOL, and tinfo.
Definition at line 109 of file btree_ts.c.
References a, b, DatumGetIntervalP(), DirectFunctionCall2, fb(), get_float8_infinity(), i, INTERVAL_TO_SEC, timestamp_mi(), TIMESTAMP_NOT_FINITE, and TimestampGetDatum().
| Datum gbt_ts_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 265 of file btree_ts.c.
References DatumGetPointer(), fb(), gbt_num_distance(), GIST_LEAF, GISTENTRY::key, PG_GETARG_OID, PG_GETARG_POINTER, PG_GETARG_TIMESTAMP, PG_RETURN_FLOAT8, and tinfo.
| Datum gbt_ts_fetch | ( | PG_FUNCTION_ARGS | ) |
Definition at line 234 of file btree_ts.c.
References gbt_num_fetch(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_ts_penalty | ( | PG_FUNCTION_ARGS | ) |
Definition at line 349 of file btree_ts.c.
References DatumGetPointer(), fb(), penalty_check_max_float, penalty_num, PG_GETARG_POINTER, and PG_RETURN_POINTER.
| Datum gbt_ts_picksplit | ( | PG_FUNCTION_ARGS | ) |
Definition at line 379 of file btree_ts.c.
References gbt_num_picksplit(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_ts_same | ( | PG_FUNCTION_ARGS | ) |
Definition at line 387 of file btree_ts.c.
References fb(), gbt_num_same(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
| Datum gbt_ts_sortsupport | ( | PG_FUNCTION_ARGS | ) |
Definition at line 410 of file btree_ts.c.
References SortSupportData::comparator, fb(), gbt_ts_ssup_cmp(), PG_GETARG_POINTER, PG_RETURN_VOID, and SortSupportData::ssup_extra.
|
static |
Definition at line 398 of file btree_ts.c.
References DatumGetInt32(), DatumGetPointer(), DirectFunctionCall2, fb(), timestamp_cmp(), TimestampGetDatum(), x, and y.
Referenced by gbt_ts_sortsupport().
| Datum gbt_ts_union | ( | PG_FUNCTION_ARGS | ) |
Definition at line 329 of file btree_ts.c.
References fb(), gbt_num_union(), palloc(), PG_GETARG_POINTER, PG_RETURN_POINTER, and tinfo.
Definition at line 62 of file btree_ts.c.
References a, b, DatumGetBool(), DirectFunctionCall2, fb(), timestamp_eq(), and TimestampGetDatum().
Definition at line 51 of file btree_ts.c.
References a, b, DatumGetBool(), DirectFunctionCall2, fb(), timestamp_ge(), and TimestampGetDatum().
Definition at line 40 of file btree_ts.c.
References a, b, DatumGetBool(), DirectFunctionCall2, fb(), timestamp_gt(), and TimestampGetDatum().
Definition at line 95 of file btree_ts.c.
References a, b, DatumGetInt32(), DirectFunctionCall2, fb(), timestamp_cmp(), and TimestampGetDatum().
Definition at line 73 of file btree_ts.c.
References a, b, DatumGetBool(), DirectFunctionCall2, fb(), timestamp_le(), and TimestampGetDatum().
Definition at line 84 of file btree_ts.c.
References a, b, DatumGetBool(), DirectFunctionCall2, fb(), timestamp_lt(), and TimestampGetDatum().
| Datum gbt_tstz_compress | ( | PG_FUNCTION_ARGS | ) |
Definition at line 208 of file btree_ts.c.
References DatumGetTimestampTz(), gistentryinit, gmt, GISTENTRY::key, GISTENTRY::leafkey, tsKEY::lower, GISTENTRY::offset, GISTENTRY::page, palloc_object, PG_GETARG_POINTER, PG_RETURN_POINTER, PointerGetDatum(), GISTENTRY::rel, tstz_to_ts_gmt(), and tsKEY::upper.
| Datum gbt_tstz_consistent | ( | PG_FUNCTION_ARGS | ) |
Definition at line 283 of file btree_ts.c.
References DatumGetPointer(), fb(), gbt_num_consistent(), GIST_LEAF, GISTENTRY::key, MAXALIGN, PG_GETARG_OID, PG_GETARG_POINTER, PG_GETARG_TIMESTAMPTZ, PG_GETARG_UINT16, PG_RETURN_BOOL, gbtree_ninfo::size, tinfo, and tstz_to_ts_gmt().
| Datum gbt_tstz_distance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 308 of file btree_ts.c.
References DatumGetPointer(), fb(), gbt_num_distance(), GIST_LEAF, GISTENTRY::key, MAXALIGN, PG_GETARG_OID, PG_GETARG_POINTER, PG_GETARG_TIMESTAMPTZ, PG_RETURN_FLOAT8, gbtree_ninfo::size, tinfo, and tstz_to_ts_gmt().
| PG_FUNCTION_INFO_V1 | ( | gbt_ts_compress | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_ts_consistent | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_ts_distance | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_ts_fetch | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_ts_penalty | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_ts_picksplit | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_ts_same | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_ts_sortsupport | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_ts_union | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_tstz_compress | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_tstz_consistent | ) |
| PG_FUNCTION_INFO_V1 | ( | gbt_tstz_distance | ) |
| PG_FUNCTION_INFO_V1 | ( | ts_dist | ) |
| PG_FUNCTION_INFO_V1 | ( | tstz_dist | ) |
| Datum ts_dist | ( | PG_FUNCTION_ARGS | ) |
Definition at line 141 of file btree_ts.c.
References a, abs_interval(), b, DatumGetIntervalP(), Interval::day, DirectFunctionCall2, fb(), Interval::month, palloc_object, PG_GETARG_DATUM, PG_GETARG_TIMESTAMP, PG_INT64_MAX, PG_RETURN_INTERVAL_P, Interval::time, timestamp_mi(), and TIMESTAMP_NOT_FINITE.
| Datum tstz_dist | ( | PG_FUNCTION_ARGS | ) |
Definition at line 165 of file btree_ts.c.
References a, abs_interval(), b, DatumGetIntervalP(), Interval::day, DirectFunctionCall2, fb(), Interval::month, palloc_object, PG_GETARG_DATUM, PG_GETARG_TIMESTAMPTZ, PG_INT64_MAX, PG_RETURN_INTERVAL_P, Interval::time, timestamp_mi(), and TIMESTAMP_NOT_FINITE.
|
inlinestatic |
Definition at line 192 of file btree_ts.c.
Referenced by gbt_tstz_compress(), gbt_tstz_consistent(), and gbt_tstz_distance().
|
static |
Definition at line 124 of file btree_ts.c.
Referenced by gbt_ts_compress(), gbt_ts_consistent(), gbt_ts_distance(), gbt_ts_fetch(), gbt_ts_picksplit(), gbt_ts_same(), gbt_ts_union(), gbt_tstz_consistent(), and gbt_tstz_distance().