MobilityDB  1.0
Macros | Functions
time_analyze.h File Reference

Functions for gathering statistics from time type columns. More...

#include <postgres.h>
#include <fmgr.h>
#include <catalog/pg_type.h>
#include <commands/vacuum.h>
#include "period.h"
Include dependency graph for time_analyze.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STATISTIC_KIND_PERIOD_BOUNDS_HISTOGRAM   8
 
#define STATISTIC_KIND_PERIOD_LENGTH_HISTOGRAM   9
 

Functions

int period_bound_qsort_cmp (const void *a1, const void *a2)
 Comparison function for sorting period bounds. More...
 
int float8_qsort_cmp (const void *a1, const void *a2)
 Comparison function for sorting float8 values, used for period lengths. More...
 
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 is not instant. More...
 
Datum period_analyze (PG_FUNCTION_ARGS)
 Compute statistics for period columns. More...
 
Datum timestampset_analyze (PG_FUNCTION_ARGS)
 Compute statistics for timestamp set columns. More...
 
Datum periodset_analyze (PG_FUNCTION_ARGS)
 Compute statistics for period set columns. More...
 

Detailed Description

Functions for gathering statistics from time type columns.