MobilityDB 1.1
Functions
pg_types.h File Reference
#include <postgres.h>
#include <utils/timestamp.h>
Include dependency graph for pg_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool bool_in (const char *in_str)
 MobilityDB functions pg_func(...) corresponding to external PostgreSQL functions func(PG_FUNCTION_ARGS). More...
 
char * bool_out (bool b)
 Convert 1 or 0 to "t" or "f". More...
 
float8 float8_in (const char *num, const char *type_name, const char *orig_string)
 
char * float8_out (double num, int maxdd)
 
uint32 hash_bytes_uint32 (uint32 k)
 
uint64 hash_bytes_uint32_extended (uint32 k, uint64 seed)
 
int32 int4_in (const char *str)
 Return an int4 from a string. More...
 
char * int4_out (int32 val)
 Return a string from an int4. More...
 
int64 int8_in (const char *str)
 Return an int8 from a string. More...
 
char * int8_out (int64 val)
 Return a string from an int8. More...
 
float8 pg_datan (float8 arg1)
 Return the arctan of arg1 (radians) More...
 
float8 pg_datan2 (float8 arg1, float8 arg2)
 Return the arctan of arg1/arg2 (radians) More...
 
float8 pg_dcos (float8 arg1)
 Return the cosine of arg1 (radians) More...
 
float8 pg_dsin (float8 arg1)
 Return the sine of arg1 (radians) More...
 
uint32 pg_hashfloat8 (float8 key)
 Get the 32-bit hash value of an float64 value. More...
 
uint64 pg_hashfloat8extended (float8 key, uint64 seed)
 Get the 64-bit hash value of a float64 value. More...
 
uint32 pg_hashint8 (int64 val)
 Get the 32-bit hash value of an int64 value. More...
 
uint64 pg_hashint8extended (int64 val, uint64 seed)
 Get the 64-bit hash value of an int64 value. More...
 
uint32 pg_hashtext (text *key)
 Get the 32-bit hash value of an text value. More...
 
uint64 pg_hashtextextended (text *key, uint64 seed)
 Get the 32-bit hash value of an text value. More...
 
int pg_interval_cmp (const Interval *interval1, const Interval *interval2)
 Compare the two intervals. More...
 
Intervalpg_interval_justify_hours (const Interval *span)
 Add an interval to a timestamp data type. More...
 
Intervalpg_interval_pl (const Interval *span1, const Interval *span2)
 Add an interval to a timestamp data type. More...
 
Intervalpg_timestamp_mi (TimestampTz dt1, TimestampTz dt2)
 Compute the difference of two timestamps. More...
 
TimestampTz pg_timestamp_mi_interval (TimestampTz timestamp, const Interval *span)
 Add an interval to a timestamp data type. More...
 
TimestampTz pg_timestamp_pl_interval (TimestampTz timestamp, const Interval *span)
 Add an interval to a timestamp data type. More...
 
TimestampTz pg_timestamptz_in (const char *str, int32 typmod)
 Convert a string to a timestamp with time zone. More...
 
char * pg_timestamptz_out (TimestampTz dt)
 Convert a timestamp with timezone to a string. More...