MobilityDB 1.1
Macros | Functions
temporal_selfuncs.h File Reference
#include <postgres.h>
#include <catalog/pg_operator.h>
#include <commands/vacuum.h>
#include <utils/lsyscache.h>
#include <utils/selfuncs.h>
#include <utils/typcache.h>
#include <meos.h>
#include "general/meos_catalog.h"
#include "general/temporal.h"
#include "pg_general/meos_catalog.h"
Include dependency graph for temporal_selfuncs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BTREE_AM_OID   403
 Selectivity functions for temporal types. More...
 
#define DEFAULT_TEMP_JOINSEL   0.001
 
#define DEFAULT_TEMP_SEL   0.0001
 Default temporal selectivity factor. More...
 

Functions

Selectivity scalarineqsel (PlannerInfo *root, Oid operid, bool isgt, bool iseq, VariableStatData *vardata, Datum constval, Oid consttypid)
 
double temporal_joinsel (PlannerInfo *root, Oid operid, List *args, JoinType jointype, SpecialJoinInfo *sjinfo, TemporalFamily tempfamily)
 Return an estimate of the join selectivity for columns of temporal values. More...
 
double temporal_joinsel_ext (FunctionCallInfo fcinfo, TemporalFamily tempfamily)
 
float8 temporal_sel (PlannerInfo *root, Oid operid, List *args, int varRelid, TemporalFamily tempfamily)
 Estimate the selectivity value of the operators for temporal types whose bounding box is a period, that is, tbool and ttext. More...
 
double temporal_sel_ext (FunctionCallInfo fcinfo, TemporalFamily tempfamily)
 
Selectivity temporal_sel_period (VariableStatData *vardata, Span *period, meosOper oper)
 Return an estimate of the selectivity of the search period and the operator for columns of temporal values. More...