42 #ifndef __TIMETYPES_H__ 43 #define __TIMETYPES_H__ 46 #include <access/stratnum.h> 47 #include <utils/timestamp.h> 96 #define DatumGetTimestampSet(X) ((TimestampSet *) DatumGetPointer(X)) 97 #define TimestampSetGetDatum(X) PointerGetDatum(X) 98 #define PG_GETARG_TIMESTAMPSET(X) DatumGetTimestampSet(PG_GETARG_POINTER(X)) 99 #define PG_RETURN_TIMESTAMPSET(X) PG_RETURN_POINTER(X) 101 #define DatumGetPeriod(X) ((Period *) DatumGetPointer(X)) 102 #define PeriodGetDatum(X) PointerGetDatum(X) 103 #define PG_GETARG_PERIOD(X) DatumGetPeriod(PG_GETARG_POINTER(X)) 104 #define PG_RETURN_PERIOD(X) PG_RETURN_POINTER(X) 106 #define DatumGetPeriodSet(X) ((PeriodSet *) DatumGetPointer(X)) 107 #define PeriodSetGetDatum(X) PointerGetDatum(X) 108 #define PG_GETARG_PERIODSET(X) DatumGetPeriodSet(PG_GETARG_POINTER(X)) 109 #define PG_RETURN_PERIODSET(X) PG_RETURN_POINTER(X) Structure to represent periods.
Definition: timetypes.h:52
TimestampTz upper
upper bound value
Definition: timetypes.h:55
Internal representation of either bound of a period (not what's on disk)
Definition: timetypes.h:63
int32 count
number of TimestampTz elements
Definition: timetypes.h:76
bool lower_inc
lower bound is inclusive (vs exclusive)
Definition: timetypes.h:56
Period period
bounding period
Definition: timetypes.h:88
int32 count
number of Period elements
Definition: timetypes.h:87
int32 vl_len_
varlena header (do not touch directly!)
Definition: timetypes.h:86
Period period
bounding period
Definition: timetypes.h:77
int32 vl_len_
varlena header (do not touch directly!)
Definition: timetypes.h:75
Structure to represent period sets.
Definition: timetypes.h:84
TimestampTz t
bound value
Definition: timetypes.h:65
TimestampTz lower
lower bound value
Definition: timetypes.h:54
Structure to represent timestamp sets.
Definition: timetypes.h:73
bool lower
this is the lower (vs upper) bound
Definition: timetypes.h:67
bool inclusive
bound is inclusive (vs exclusive)
Definition: timetypes.h:66
bool upper_inc
upper bound is inclusive (vs exclusive)
Definition: timetypes.h:57