MobilityDB 1.1
Functions
type_util.c File Reference
#include "general/type_util.h"
#include <assert.h>
#include <postgres.h>
#include <utils/lsyscache.h>
#include <catalog/pg_collation_d.h>
#include <catalog/pg_type_d.h>
#include <utils/array.h>
#include <utils/rangetypes.h>
#include <utils/varlena.h>
#include <meos.h>
#include <meos_internal.h>
#include "pg_general/meos_catalog.h"
#include "pg_general/doublen.h"
Include dependency graph for type_util.c:

Functions

Datum call_function1 (PGFunction func, Datum arg1)
 Call PostgreSQL function with 1 argument. More...
 
Datum call_function2 (PGFunction func, Datum arg1, Datum arg2)
 Call PostgreSQL function with 2 arguments. More...
 
Datum call_recv (meosType type, StringInfo buf)
 General utility functions for temporal types. More...
 
byteacall_send (meosType type, Datum value)
 Call send function of the base type. More...
 
Datumdatumarr_extract (ArrayType *array, int *count)
 Extract a C array from a PostgreSQL array containing datums. More...
 
ArrayType * datumarr_to_array (Datum *values, int count, meosType type)
 Convert a C array of datums into a PostgreSQL array. More...
 
ArrayType * int64arr_to_array (const int64 *longints, int count)
 Convert a C array of timestamps into a PostgreSQL array. More...
 
RangeType * range_make (Datum from, Datum to, bool lower_inc, bool upper_inc, meosType basetype)
 Construct a range value from given arguments. More...
 
Span ** spanarr_extract (ArrayType *array, int *count)
 Extract a C array from a PostgreSQL array containing spans. More...
 
ArrayType * spanarr_to_array (Span **spans, int count)
 Convert a C array of spans into a PostgreSQL array. More...
 
ArrayType * stboxarr_to_array (STBox *boxarr, int count)
 Convert a C array of spatiotemporal boxes into a PostgreSQL array. More...
 
ArrayType * strarr_to_textarray (char **strarr, int count)
 Convert a C array of text values into a PostgreSQL array. More...
 
Temporal ** temporalarr_extract (ArrayType *array, int *count)
 Extract a C array from a PostgreSQL array containing temporal values. More...
 
ArrayType * temporalarr_to_array (const Temporal **temporalarr, int count)
 Convert a C array of temporal values into a PostgreSQL array. More...
 
ArrayType * timestamparr_to_array (const TimestampTz *times, int count)
 Convert a C array of timestamps into a PostgreSQL array. More...