MobilityDB
1.0
|
Selectivity functions for temporal types. More...
#include <postgres.h>
#include <fmgr.h>
#include <catalog/pg_operator.h>
#include <commands/vacuum.h>
#include <utils/lsyscache.h>
#include <utils/rangetypes.h>
#include <utils/selfuncs.h>
#include <utils/typcache.h>
#include "temporal.h"
#include "tempcache.h"
Go to the source code of this file.
Macros | |
#define | BTREE_AM_OID 403 |
#define | DEFAULT_TEMP_SELECTIVITY 0.001 |
Functions | |
Selectivity | scalarineqsel (PlannerInfo *root, Oid operator, bool isgt, bool iseq, VariableStatData *vardata, Datum constval, Oid consttype) |
Selectivity | temporal_sel_internal (PlannerInfo *root, VariableStatData *vardata, Period *period, CachedOp cachedOp) |
Returns an estimate of the selectivity of the search period and the operator for columns of temporal values. More... | |
double | var_eq_const (VariableStatData *vardata, Oid operator, Datum constval, bool constisnull, bool varonleft, bool negate) |
Equal selectivity for var = const case. More... | |
Datum | temporal_sel (PG_FUNCTION_ARGS) |
Estimate the selectivity value of the operators for temporal types whose bounding box is a period, that is, tbool and ttext. More... | |
Datum | temporal_joinsel (PG_FUNCTION_ARGS) |
Selectivity functions for temporal types.