MobilityDB  1.0
Functions
rangetypes_ext.h File Reference

Extended operators for range types. More...

#include <postgres.h>
#include <catalog/pg_type.h>
#include <utils/rangetypes.h>
#include "temporaltypes.h"
Include dependency graph for rangetypes_ext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const char * range_to_string (const RangeType *range)
 
Datum lower_datum (const RangeType *range)
 Returns the string representation of the range value, used for debugging. More...
 
Datum upper_datum (const RangeType *range)
 Returns the upper bound of the range value. More...
 
bool lower_inc (RangeType *range)
 Returns true if the lower bound of the range value is inclusive. More...
 
bool upper_inc (RangeType *range)
 Returns true if the upper bound of the range value is inclusive. More...
 
void range_bounds (const RangeType *range, double *xmin, double *xmax)
 Get the bounds of the range as double values. More...
 
RangeType * range_make (Datum from, Datum to, bool lower_inc, bool upper_inc, Oid basetypid)
 Construct a range value from given arguments. More...
 
RangeType ** rangearr_normalize (RangeType **ranges, int count, int *newcount)
 Normalize an array of ranges, which may be non contiguous. More...
 
Datum intrange_canonical (PG_FUNCTION_ARGS)
 Canonical function for defining the intrange type. More...
 
Datum range_left_elem (PG_FUNCTION_ARGS)
 Returns true if the range value is strictly to the left of the value. More...
 
Datum range_overleft_elem (PG_FUNCTION_ARGS)
 Returns true if the range value does not extend to the right of the value. More...
 
Datum range_right_elem (PG_FUNCTION_ARGS)
 Returns true if the range value is strictly to the right of the value. More...
 
Datum range_overright_elem (PG_FUNCTION_ARGS)
 Returns true if the range value does not extend to the left of the value. More...
 
Datum range_adjacent_elem (PG_FUNCTION_ARGS)
 Returns true if the range value and the value are adjacent. More...
 
Datum elem_left_range (PG_FUNCTION_ARGS)
 Returns true if the value is strictly to the left of the range value. More...
 
Datum elem_overleft_range (PG_FUNCTION_ARGS)
 Returns true if the value does not extend to the right of the range value. More...
 
Datum elem_right_range (PG_FUNCTION_ARGS)
 Returns true if the value is strictly to the right of the range value. More...
 
Datum elem_overright_range (PG_FUNCTION_ARGS)
 Returns true if the value does not extend to the left of the range value. More...
 
Datum elem_adjacent_range (PG_FUNCTION_ARGS)
 Returns true if the value and the range value are adjacent. More...
 

Detailed Description

Extended operators for range types.