MobilityDB 1.1
Macros | Functions
tpoint_selfuncs.h File Reference
#include <postgres.h>
#include <catalog/pg_statistic.h>
#include <utils/selfuncs.h>
#include "general/meos_catalog.h"
#include "point/tpoint.h"
#include "pg_point/tpoint_analyze.h"
Include dependency graph for tpoint_selfuncs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFAULT_ND_JOINSEL   0.001
 
#define DEFAULT_ND_SEL   0.0001
 Default geometry selectivity factor. More...
 
#define FALLBACK_ND_JOINSEL   0.3
 
#define FALLBACK_ND_SEL   0.2
 More modest fallafter selectivity factor. More...
 
#define MIN_DIMENSION_WIDTH   0.000000001
 Minimum width of a dimension that we'll bother trying to compute statistics on. More...
 
#define ND_DIMS   4
 
#define SDFACTOR   3.25
 
#define STATISTIC_KIND_2D   103
 
#define STATISTIC_KIND_ND   102
 
#define STATISTIC_SLOT_2D   1
 
#define STATISTIC_SLOT_ND   0
 
#define T_DIM   3
 
#define X_DIM   0
 Selectivity functions for temporal point types. More...
 
#define Y_DIM   1
 
#define Z_DIM   2
 

Functions

float8 geo_joinsel (const ND_STATS *s1, const ND_STATS *s2)
 Given two statistics histograms, what is the selectivity of a join driven by the && operator? More...
 
float8 geo_sel (VariableStatData *vardata, const STBox *box, meosOper oper)
 Return an estimate of the selectivity of a spatiotemporal search box by looking at data in the ND_STATS structure. More...
 
ND_STATSpg_get_nd_stats (const Oid tableid, AttrNumber att_num, int mode, bool only_parent)
 Pull the stats object from the PgSQL system catalogs. More...
 
ND_STATSpg_nd_stats_from_tuple (HeapTuple stats_tuple, int mode)
 Get the statistics from the tuple. More...