MobilityDB  1.0
Data Structures | Macros | Enumerations | Functions | Variables
tempcache.h File Reference

Functions for building a cache of type and operator Oids. More...

#include <postgres.h>
#include <fmgr.h>
#include <catalog/pg_type.h>
#include "temporal.h"
Include dependency graph for tempcache.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  temptype_cache_struct
 Structure to represent the temporal type cache array. More...
 

Macros

#define TEMPTYPE_CACHE_MAX_LEN   16
 

Enumerations

enum  CachedType {
  T_BOOL, T_DOUBLE2, T_DOUBLE3, T_DOUBLE4,
  T_FLOAT8, T_FLOATRANGE, T_INT4, T_INTRANGE,
  T_PERIOD, T_PERIODSET, T_STBOX, T_TBOOL,
  T_TBOX, T_TDOUBLE2, T_TDOUBLE3, T_TDOUBLE4,
  T_TEXT, T_TFLOAT, T_TIMESTAMPSET, T_TIMESTAMPTZ,
  T_TINT, T_TSTZRANGE, T_TTEXT, T_GEOMETRY,
  T_GEOGRAPHY, T_TGEOMPOINT, T_TGEOGPOINT, T_NPOINT,
  T_NSEGMENT, T_TNPOINT
}
 Enumeration that defines the built-in and temporal types used in MobilityDB. More...
 
enum  CachedOp {
  EQ_OP, NE_OP, LT_OP, LE_OP,
  GT_OP, GE_OP, ADJACENT_OP, UNION_OP,
  MINUS_OP, INTERSECT_OP, OVERLAPS_OP, CONTAINS_OP,
  CONTAINED_OP, SAME_OP, LEFT_OP, OVERLEFT_OP,
  RIGHT_OP, OVERRIGHT_OP, BELOW_OP, OVERBELOW_OP,
  ABOVE_OP, OVERABOVE_OP, FRONT_OP, OVERFRONT_OP,
  BACK_OP, OVERBACK_OP, BEFORE_OP, OVERBEFORE_OP,
  AFTER_OP, OVERAFTER_OP
}
 Enumeration that defines the classes of Boolean operators used in MobilityDB. More...
 

Functions

Oid temporal_basetypid (Oid temptypid)
 Returns the Oid of the base type from the Oid of the temporal type. More...
 
Oid type_oid (CachedType t)
 Fetch from the cache the Oid of a type. More...
 
Oid oper_oid (CachedOp op, CachedType lt, CachedType rt)
 Fetch from the cache the Oid of an operator. More...
 
Datum fill_opcache (PG_FUNCTION_ARGS)
 Function executed during the CREATE EXTENSION to precompute the operator cache and store it as a table in the catalog. More...
 

Variables

bool _temptyp_cache_ready
 
bool _ready
 Global variable that states whether the type and operator caches has been initialized. More...
 

Detailed Description

Functions for building a cache of type and operator Oids.