MobilityDB  1.0
Functions
time_selfuncs.h File Reference
#include <postgres.h>
#include <catalog/pg_type.h>
#include <utils/selfuncs.h>
#include "temporal_selfuncs.h"
#include "timetypes.h"
Include dependency graph for time_selfuncs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double calc_period_hist_selectivity (VariableStatData *vardata, const Period *constval, CachedOp cachedOp)
 
double calc_period_hist_selectivity_scalar (PeriodBound *constbound, PeriodBound *hist, int hist_nvalues, bool equal)
 
double calc_period_hist_selectivity_contained (PeriodBound *lower, PeriodBound *upper, PeriodBound *hist_lower, int hist_nvalues, Datum *length_hist_values, int length_hist_nvalues)
 
double calc_period_hist_selectivity_contains (PeriodBound *lower, PeriodBound *upper, PeriodBound *hist_lower, int hist_nvalues, Datum *length_hist_values, int length_hist_nvalues)
 
double calc_period_hist_selectivity_adjacent (PeriodBound *lower, PeriodBound *upper, PeriodBound *hist_lower, PeriodBound *hist_upper, int hist_nvalues)
 
int length_hist_bsearch (Datum *length_hist_values, int length_hist_nvalues, double value, bool equal)
 
double get_len_position (double value, double hist1, double hist2)
 
double calc_length_hist_frac (Datum *length_hist_values, int length_hist_nvalues, double length1, double length2, bool equal)
 
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...