36 #ifndef __TIME_ANALYZE_H__ 37 #define __TIME_ANALYZE_H__ 41 #include <catalog/pg_type.h> 42 #include <commands/vacuum.h> 51 #define STATISTIC_KIND_PERIOD_BOUNDS_HISTOGRAM 8 57 #define STATISTIC_KIND_PERIOD_LENGTH_HISTOGRAM 9 Basic routines for time periods composed of two TimestampTz values and two Boolean values stating whe...
Datum periodset_analyze(PG_FUNCTION_ARGS)
Compute statistics for period set columns.
Definition: time_analyze.c:427
Internal representation of either bound of a period (not what's on disk)
Definition: timetypes.h:63
int period_bound_qsort_cmp(const void *a1, const void *a2)
Comparison function for sorting period bounds.
Definition: period.c:159
Datum period_analyze(PG_FUNCTION_ARGS)
Compute statistics for period columns.
Definition: time_analyze.c:355
Datum timestampset_analyze(PG_FUNCTION_ARGS)
Compute statistics for timestamp set columns.
Definition: time_analyze.c:391
void period_compute_stats1(VacAttrStats *stats, int non_null_cnt, int *slot_idx, PeriodBound *lowers, PeriodBound *uppers, float8 *lengths)
Compute statistics for period columns and for the time dimension of all temporal types whose subtype ...
Definition: time_analyze.c:96
int float8_qsort_cmp(const void *a1, const void *a2)
Comparison function for sorting float8 values, used for period lengths.
Definition: time_analyze.c:73