34#ifndef __TEMPORAL_SELFUNCS_H__
35#define __TEMPORAL_SELFUNCS_H__
39#include <catalog/pg_operator.h>
40#include <commands/vacuum.h>
41#include <utils/lsyscache.h>
42#include <utils/selfuncs.h>
43#include <utils/typcache.h>
46#include "general/meos_catalog.h"
47#include "general/temporal.h"
51#define BTREE_AM_OID 403
56#define DEFAULT_TEMP_SEL 0.0001
57#define DEFAULT_TEMP_JOINSEL 0.001
64 bool iseq, VariableStatData *vardata,
Datum constval,
Oid consttypid);
78 List *args, JoinType jointype, SpecialJoinInfo *sjinfo,
double float8
Definition: c.h:570
meosOper
Enumeration that defines the classes of Boolean operators used in MobilityDB.
Definition: meos_catalog.h:107
TemporalFamily
Enumeration for the families of temporal types.
Definition: temporal.h:153
uintptr_t Datum
Definition: pg_ext_defs.in.h:4
unsigned int Oid
Definition: postgres_ext.h:31
Structure to represent spans (a.k.a.
Definition: meos.h:70
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 v...
Definition: temporal_selfuncs.c:500
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.
Definition: temporal_selfuncs.c:955
double temporal_sel_ext(FunctionCallInfo fcinfo, TemporalFamily tempfamily)
Definition: temporal_selfuncs.c:794
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,...
Definition: temporal_selfuncs.c:638
Selectivity scalarineqsel(PlannerInfo *root, Oid operid, bool isgt, bool iseq, VariableStatData *vardata, Datum constval, Oid consttypid)
double temporal_joinsel_ext(FunctionCallInfo fcinfo, TemporalFamily tempfamily)
Definition: temporal_selfuncs.c:1069