40 #include <catalog/pg_type.h> bool overafter_timestampset_periodset_internal(const TimestampSet *ts, const PeriodSet *ps)
Returns true if the first time value is not before the second one (internal function) ...
Definition: timeops.c:2340
Datum adjacent_timestamp_period(PG_FUNCTION_ARGS)
Returns true if the two time value are adjacent.
Definition: timeops.c:2583
Datum before_timestampset_timestamp(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly before the second one.
Definition: timeops.c:1134
bool overafter_period_timestamp_internal(const Period *p, TimestampTz t)
Returns true if the first time value is not before the second one (internal function) ...
Definition: timeops.c:2367
TimestampSet * minus_timestampset_periodset_internal(const TimestampSet *ts, const PeriodSet *ps)
Returns the difference of the two time values (internal function)
Definition: timeops.c:3846
Datum union_periodset_timestampset(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:3153
bool overlaps_timestampset_period_internal(const TimestampSet *ts, const Period *p)
Returns true if the two time values overlap (internal function)
Definition: timeops.c:812
Structure to represent periods.
Definition: timetypes.h:52
bool before_period_timestampset_internal(const Period *p, const TimestampSet *ts)
Returns true if the first time value is strictly before the second one (internal function) ...
Definition: timeops.c:1251
TimestampSet * intersection_timestampset_timestampset_internal(const TimestampSet *ts1, const TimestampSet *ts2)
Returns the intersection of the two time values (internal function)
Definition: timeops.c:3380
Datum union_timestamp_periodset(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:2940
Datum overbefore_periodset_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is not after the second one.
Definition: timeops.c:2172
bool after_timestampset_timestamp_internal(const TimestampSet *ts, TimestampTz t)
Returns true if the first time value is strictly after the second one (internal function) ...
Definition: timeops.c:1504
TimestampSet * minus_timestampset_timestampset_internal(const TimestampSet *ts1, const TimestampSet *ts2)
Returns the difference of the two time values (internal function)
Definition: timeops.c:3793
RelativeTimePos
Enumeration for the relative position of a given element into a skiplist.
Definition: timeops.h:48
Datum intersection_period_timestamp(PG_FUNCTION_ARGS)
Returns the intersection of the two time values.
Definition: timeops.c:3462
PeriodSet * minus_periodset_timestamp_internal(const PeriodSet *ps, TimestampTz t)
Returns the difference of the two time values (internal function)
Definition: timeops.c:4149
PeriodSet * minus_periodset_timestampset_internal(const PeriodSet *ps, const TimestampSet *ts)
Returns the difference of the two time values (internal function)
Definition: timeops.c:4188
bool after_periodset_timestampset_internal(const PeriodSet *ps, const TimestampSet *ts)
Returns true if the first time value is strictly after the second one (internal function) ...
Definition: timeops.c:1729
bool after_period_timestamp_internal(const Period *p, TimestampTz t)
Returns true if the first time value is strictly after the second one (internal function) ...
Definition: timeops.c:1608
Datum contained_period_period(PG_FUNCTION_ARGS)
Returns true if the first time value is contained by the second one.
Definition: timeops.c:712
Datum overlaps_period_periodset(PG_FUNCTION_ARGS)
Returns true if the two time values overlap.
Definition: timeops.c:956
Datum minus_timestamp_period(PG_FUNCTION_ARGS)
Returns the difference of the two time values.
Definition: timeops.c:3722
PeriodSet * intersection_periodset_periodset_internal(const PeriodSet *ps1, const PeriodSet *ps2)
Returns the intersection of the two time values (internal function)
Definition: timeops.c:3628
bool before_periodset_periodset_internal(const PeriodSet *ps1, const PeriodSet *ps2)
Returns true if the first time value is strictly before the second one (internal function) ...
Definition: timeops.c:1401
bool overafter_timestampset_timestamp_internal(const TimestampSet *ts, TimestampTz t)
Returns true if the first time value is not before the second one (internal function) ...
Definition: timeops.c:2263
bool overbefore_timestampset_timestampset_internal(const TimestampSet *ts1, const TimestampSet *ts2)
Returns true if the first time value is not after the second one (internal function) ...
Definition: timeops.c:1909
Datum adjacent_timestampset_periodset(PG_FUNCTION_ARGS)
Returns true if the two time value are adjacent.
Definition: timeops.c:2673
bool overlaps_periodset_periodset_internal(const PeriodSet *ps1, const PeriodSet *ps2)
Returns true if the two time values overlap (internal function)
Definition: timeops.c:998
bool overafter_period_periodset_internal(const Period *p, const PeriodSet *ps)
Returns true if the first time value is not before the second one (internal function) ...
Definition: timeops.c:2437
Datum before_periodset_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly before the second one.
Definition: timeops.c:1361
void ensure_time_type_oid(Oid timetypid)
Ensure that the Oid corresponds to a time type.
Definition: timeops.c:60
Datum before_period_period(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly before the second one.
Definition: timeops.c:1287
Datum after_period_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly after the second one.
Definition: timeops.c:1690
PeriodSet * union_period_periodset_internal(const Period *p, const PeriodSet *ps)
Returns the union of the two time values (internal function)
Definition: timeops.c:3106
bool adjacent_timestamp_period_internal(TimestampTz t, const Period *p)
Returns true if the two time value are adjacent (internal function)
Definition: timeops.c:2568
bool overbefore_periodset_timestampset_internal(const PeriodSet *ps, const TimestampSet *ts)
Returns true if the first time value is not after the second one (internal function) ...
Definition: timeops.c:2108
TimestampSet * intersection_timestampset_period_internal(const TimestampSet *ts, const Period *p)
Returns the intersection of the two time values (internal function)
Definition: timeops.c:3407
TimestampSet * minus_timestampset_timestamp_internal(const TimestampSet *ts, TimestampTz t)
Returns the difference of the two time values (internal function)
Definition: timeops.c:3755
Datum minus_timestamp_timestamp(PG_FUNCTION_ARGS)
Returns the difference of the two time values (internal function)
Definition: timeops.c:3692
bool overafter_periodset_timestampset_internal(const PeriodSet *ps, const TimestampSet *ts)
Returns true if the first time value is not before the second one (internal function) ...
Definition: timeops.c:2487
Datum minus_period_timestampset(PG_FUNCTION_ARGS)
Returns the difference of the two time valuess.
Definition: timeops.c:3961
Datum contained_timestampset_period(PG_FUNCTION_ARGS)
Returns true if the first time value is contained by the second one.
Definition: timeops.c:673
Datum after_timestampset_timestamp(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly after the second one.
Definition: timeops.c:1515
Datum union_periodset_periodset(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:3284
bool before_timestamp_timestampset_internal(TimestampTz t, const TimestampSet *ts)
Returns true if the first time value is strictly before the second one (internal function) ...
Definition: timeops.c:1050
Datum intersection_periodset_period(PG_FUNCTION_ARGS)
Returns the intersection of the two time values.
Definition: timeops.c:3613
bool adjacent_periodset_timestamp_internal(const PeriodSet *ps, TimestampTz t)
bool overbefore_period_periodset_internal(const Period *p, const PeriodSet *ps)
Returns true if the first time value is not after the second one (internal function) ...
Definition: timeops.c:2058
bool after_timestampset_period_internal(const TimestampSet *ts, const Period *p)
Returns true if the first time value is strictly after the second one (internal function) ...
Definition: timeops.c:1556
bool overlaps_timestampset_timestampset_internal(const TimestampSet *ts1, const TimestampSet *ts2)
Returns true if the two time values overlap (internal function)
Definition: timeops.c:769
Datum contains_periodset_period(PG_FUNCTION_ARGS)
Returns true if the first time value contains the second one.
Definition: timeops.c:519
Datum contains_periodset_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value contains the second one.
Definition: timeops.c:487
bool contains_period_period_internal(const Period *p1, const Period *p2)
Returns true if the first time value contains the second one (internal function)
Definition: timeops.c:397
Datum overafter_period_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is not before the second one.
Definition: timeops.c:2400
TimestampSet * union_timestampset_timestampset_internal(const TimestampSet *ts1, const TimestampSet *ts2)
Returns the union of the two time values (internal function)
Definition: timeops.c:2971
Datum overafter_period_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is not before the second one.
Definition: timeops.c:2448
Datum overbefore_period_period(PG_FUNCTION_ARGS)
Returns true if the first time value is not after the second one.
Definition: timeops.c:2046
bool overbefore_timestamp_timestampset_internal(TimestampTz t, const TimestampSet *ts)
Returns true if the first time value is not after the second one (internal function) ...
Definition: timeops.c:1811
bool contains_period_timestamp_internal(const Period *p, TimestampTz t)
Returns true if the first time value contains the second one (internal function)
Definition: timeops.c:341
Datum after_period_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly after the second one.
Definition: timeops.c:1642
Datum intersection_periodset_timestampset(PG_FUNCTION_ARGS)
Returns the intersection of the two time values.
Definition: timeops.c:3596
Datum overbefore_timestamp_period(PG_FUNCTION_ARGS)
Returns true if the first time value is not after the second one.
Definition: timeops.c:1847
bool adjacent_timestampset_periodset_internal(const TimestampSet *ts, const PeriodSet *ps)
Returns true if the two time value are adjacent (internal function)
Definition: timeops.c:2654
Datum overafter_periodset_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is not before the second one.
Definition: timeops.c:2551
Datum overbefore_period_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is not after the second one.
Definition: timeops.c:2021
bool overbefore_period_timestampset_internal(const Period *p, const TimestampSet *ts)
Returns true if the first time value is not after the second one (internal function) ...
Definition: timeops.c:2010
Datum before_timestamp_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly before the second one.
Definition: timeops.c:1061
Datum overlaps_periodset_timestampset(PG_FUNCTION_ARGS)
Returns true if the two time values overlap.
Definition: timeops.c:970
Datum minus_periodset_timestampset(PG_FUNCTION_ARGS)
Returns the difference of the two time values.
Definition: timeops.c:4300
Datum minus_period_timestamp(PG_FUNCTION_ARGS)
Returns the difference of the two time values.
Definition: timeops.c:3926
Datum contains_periodset_timestamp(PG_FUNCTION_ARGS)
Returns true if the first time value contains the second one.
Definition: timeops.c:443
Datum overafter_periodset_period(PG_FUNCTION_ARGS)
Returns true if the first time value is not before the second one.
Definition: timeops.c:2525
bool adjacent_period_timestampset_internal(const Period *p, const TimestampSet *ts)
Datum union_period_timestampset(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:3079
Datum adjacent_timestamp_periodset(PG_FUNCTION_ARGS)
Returns true if the two time value are adjacent.
Definition: timeops.c:2611
Datum overafter_timestampset_period(PG_FUNCTION_ARGS)
Returns true if the first time value is not before the second one.
Definition: timeops.c:2326
bool overbefore_period_timestamp_internal(const Period *p, TimestampTz t)
Returns true if the first time value is not after the second one (internal function) ...
Definition: timeops.c:1988
bool overbefore_periodset_periodset_internal(const PeriodSet *ps1, const PeriodSet *ps2)
Returns true if the first time value is not after the second one (internal function) ...
Definition: timeops.c:2160
PeriodSet * minus_periodset_periodset_internal(const PeriodSet *ps1, const PeriodSet *ps2)
Returns the difference of the two time values (internal function)
Definition: timeops.c:4355
Datum union_timestamp_timestampset(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:2911
bool overafter_timestamp_periodset_internal(TimestampTz t, const PeriodSet *ps)
Returns true if the first time value is not before the second one (internal function) ...
Definition: timeops.c:2238
Datum adjacent_periodset_periodset(PG_FUNCTION_ARGS)
Returns true if the two time value are adjacent.
Definition: timeops.c:2831
Datum union_period_timestamp(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:3064
PeriodSet * intersection_period_periodset_internal(const Period *p, const PeriodSet *ps)
Returns the intersection of the two time values (internal function)
Definition: timeops.c:3528
Datum contains_period_timestamp(PG_FUNCTION_ARGS)
Returns true if the first time value contains the second one.
Definition: timeops.c:359
Datum before_timestamp_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly before the second one.
Definition: timeops.c:1109
bool before_timestampset_timestampset_internal(const TimestampSet *ts1, const TimestampSet *ts2)
Returns true if the first time value is strictly before the second one (internal function) ...
Definition: timeops.c:1148
Datum after_timestamp_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly after the second one.
Definition: timeops.c:1442
Datum before_periodset_timestamp(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly before the second one.
Definition: timeops.c:1335
bool before_periodset_timestampset_internal(const PeriodSet *ps, const TimestampSet *ts)
Returns true if the first time value is strictly before the second one (internal function) ...
Definition: timeops.c:1349
bool before_period_period_internal(const Period *p1, const Period *p2)
Returns true if the first time value is strictly before the second one (internal function) ...
Definition: timeops.c:1276
Datum overbefore_period_timestamp(PG_FUNCTION_ARGS)
Returns true if the first time value is not after the second one.
Definition: timeops.c:1998
Datum contained_timestampset_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is contained by the second one.
Definition: timeops.c:687
Datum union_timestampset_periodset(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:3012
bool adjacent_periodset_timestampset_internal(const PeriodSet *ps, const TimestampSet *ts)
bool adjacent_periodset_periodset_internal(const PeriodSet *ps1, const PeriodSet *ps2)
Returns true if the two time value are adjacent (internal function)
Definition: timeops.c:2812
Datum minus_timestampset_period(PG_FUNCTION_ARGS)
Returns the difference of the two time values.
Definition: timeops.c:3830
bool after_timestamp_timestampset_internal(TimestampTz t, const TimestampSet *ts)
Returns true if the first time value is strictly after the second one (internal function) ...
Definition: timeops.c:1431
bool contained_period_period_internal(const Period *p1, const Period *p2)
Returns true if the first time value is contained by the second one (internal function) ...
Definition: timeops.c:702
Datum minus_timestampset_timestamp(PG_FUNCTION_ARGS)
Returns the difference of the two time values.
Definition: timeops.c:3778
bool after_timestamp_periodset_internal(TimestampTz t, const PeriodSet *ps)
Returns true if the first time value is strictly after the second one (internal function) ...
Definition: timeops.c:1479
Datum minus_periodset_timestamp(PG_FUNCTION_ARGS)
Returns the difference of the two time values.
Definition: timeops.c:4173
Datum minus_periodset_periodset(PG_FUNCTION_ARGS)
Returns the difference of the two time values (internal function)
Definition: timeops.c:4410
bool before_periodset_period_internal(const PeriodSet *ps, const Period *p)
Returns true if the first time value is strictly before the second one (internal function) ...
Definition: timeops.c:1376
bool before_period_periodset_internal(const Period *p, const PeriodSet *ps)
Returns true if the first time value is strictly before the second one (internal function) ...
Definition: timeops.c:1299
bool contains_period_periodset_internal(const Period *p, const PeriodSet *ps)
Returns true if the first time value contains the second one (internal function)
Definition: timeops.c:532
Datum overafter_period_period(PG_FUNCTION_ARGS)
Returns true if the first time value is not before the second one.
Definition: timeops.c:2425
Datum contains_period_period(PG_FUNCTION_ARGS)
Returns true if the first time value contains the second one.
Definition: timeops.c:414
Datum adjacent_period_period(PG_FUNCTION_ARGS)
Returns true if the two time value are adjacent.
Definition: timeops.c:2728
Datum contained_timestamp_period(PG_FUNCTION_ARGS)
Returns true if the first time value is contained by the second one.
Definition: timeops.c:632
Datum after_timestampset_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly after the second one.
Definition: timeops.c:1593
Datum union_periodset_period(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:3170
bool after_timestampset_timestampset_internal(const TimestampSet *ts1, const TimestampSet *ts2)
Returns true if the first time value is strictly after the second one (internal function) ...
Definition: timeops.c:1529
bool overbefore_period_period_internal(const Period *p1, const Period *p2)
Returns true if the first time value is not after the second one (internal function) ...
Definition: timeops.c:2035
Structure to represent period sets.
Definition: timetypes.h:84
Datum before_period_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly before the second one.
Definition: timeops.c:1310
bool adjacent_period_periodset_internal(const Period *p, const PeriodSet *ps)
Returns true if the two time value are adjacent (internal function)
Definition: timeops.c:2739
bool after_timestampset_periodset_internal(const TimestampSet *ts, const PeriodSet *ps)
Returns true if the first time value is strictly after the second one (internal function) ...
Definition: timeops.c:1581
PeriodSet * minus_period_periodset_internal(const Period *p, const PeriodSet *ps)
Definition: timeops.c:4114
bool contains_periodset_period_internal(const PeriodSet *ps, const Period *p)
Returns true if the first time value contains the second one (internal function)
Definition: timeops.c:501
Datum before_timestampset_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly before the second one.
Definition: timeops.c:1160
Datum intersection_timestamp_timestamp(PG_FUNCTION_ARGS)
Returns the intersection of the two time values.
Definition: timeops.c:3303
Datum minus_periodset_period(PG_FUNCTION_ARGS)
Returns the difference of the two time values.
Definition: timeops.c:4340
Datum intersection_timestamp_period(PG_FUNCTION_ARGS)
Returns the intersection of the two time values.
Definition: timeops.c:3333
Datum overlaps_period_period(PG_FUNCTION_ARGS)
Returns true if the two time values overlap.
Definition: timeops.c:919
Datum contained_periodset_period(PG_FUNCTION_ARGS)
Returns true if the first time value is contained by the second one.
Definition: timeops.c:738
Datum adjacent_periodset_period(PG_FUNCTION_ARGS)
Returns true if the two time value are adjacent.
Definition: timeops.c:2799
bool overafter_timestamp_period_internal(TimestampTz t, const Period *p)
Returns true if the first time value is not before the second one (internal function) ...
Definition: timeops.c:2215
Datum overbefore_timestampset_timestamp(PG_FUNCTION_ARGS)
Returns true if the first time value is not after the second one.
Definition: timeops.c:1895
bool overbefore_timestampset_timestamp_internal(const TimestampSet *ts, TimestampTz t)
Returns true if the first time value is not after the second one (internal function) ...
Definition: timeops.c:1884
Datum overafter_timestampset_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is not before the second one.
Definition: timeops.c:2300
Datum union_timestamp_timestamp(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:2850
bool before_timestampset_timestamp_internal(const TimestampSet *ts, TimestampTz t)
Returns true if the first time value is strictly before the second one (internal function) ...
Definition: timeops.c:1123
bool before_timestampset_period_internal(const TimestampSet *ts, const Period *p)
Returns true if the first time value is strictly before the second one (internal function) ...
Definition: timeops.c:1175
Datum overafter_period_timestamp(PG_FUNCTION_ARGS)
Returns true if the first time value is not before the second one.
Definition: timeops.c:2377
Datum intersection_timestamp_timestampset(PG_FUNCTION_ARGS)
Returns the intersection of the two time values.
Definition: timeops.c:3317
Functions for time types based on TimestampTz, that is, TimestampSet, Period, and PeriodSet...
Datum contains_period_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value contains the second one.
Definition: timeops.c:543
Datum overbefore_periodset_period(PG_FUNCTION_ARGS)
Returns true if the first time value is not after the second one.
Definition: timeops.c:2146
Datum before_periodset_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly before the second one.
Definition: timeops.c:1413
PeriodSet * minus_period_timestamp_internal(const Period *p, TimestampTz t)
Returns the difference of the two time values (internal function)
Definition: timeops.c:3908
Datum after_periodset_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly after the second one.
Definition: timeops.c:1793
bool overafter_timestampset_period_internal(const TimestampSet *ts, const Period *p)
Returns true if the first time value is not before the second one (internal function) ...
Definition: timeops.c:2315
Datum overafter_timestamp_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is not before the second one.
Definition: timeops.c:2249
Datum overafter_timestamp_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is not before the second one.
Definition: timeops.c:2201
bool after_period_timestampset_internal(const Period *p, const TimestampSet *ts)
Returns true if the first time value is strictly after the second one (internal function) ...
Definition: timeops.c:1631
Datum after_timestampset_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly after the second one.
Definition: timeops.c:1541
bool before_period_timestamp_internal(const Period *p, TimestampTz t)
Returns true if the first time value is strictly before the second one (internal function) ...
Definition: timeops.c:1227
Datum contained_timestamp_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is contained by the second one.
Definition: timeops.c:644
Datum union_period_periodset(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:3121
Datum intersection_period_timestampset(PG_FUNCTION_ARGS)
Returns the intersection of the two time values.
Definition: timeops.c:3478
Datum overbefore_timestamp_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is not after the second one.
Definition: timeops.c:1822
Structure to represent timestamp sets.
Definition: timetypes.h:73
bool after_periodset_timestamp_internal(const PeriodSet *ps, TimestampTz t)
Returns true if the first time value is strictly after the second one (internal function) ...
Definition: timeops.c:1704
Datum intersection_periodset_timestamp(PG_FUNCTION_ARGS)
Returns the intersection of the two time values.
Definition: timeops.c:3580
Datum adjacent_periodset_timestamp(PG_FUNCTION_ARGS)
Returns true if the two time value are adjacent.
Definition: timeops.c:2770
PeriodSet * union_period_period_internal(const Period *p1, const Period *p2)
Returns the union of the two time values (internal function)
Definition: timeops.c:3030
bool overbefore_timestamp_periodset_internal(TimestampTz t, const PeriodSet *ps)
Returns true if the first time value is not after the second one (internal function) ...
Definition: timeops.c:1859
bool after_periodset_periodset_internal(const PeriodSet *ps1, const PeriodSet *ps2)
Returns true if the first time value is strictly after the second one (internal function) ...
Definition: timeops.c:1781
Datum after_periodset_timestamp(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly after the second one.
Definition: timeops.c:1715
Datum intersection_timestampset_periodset(PG_FUNCTION_ARGS)
Returns the intersection of the two time values.
Definition: timeops.c:3443
bool adjacent_timestamp_periodset_internal(TimestampTz t, const PeriodSet *ps)
Returns true if the two time value are adjacent (internal function)
Definition: timeops.c:2594
Datum contained_periodset_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is contained by the second one.
Definition: timeops.c:752
Datum after_periodset_period(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly after the second one.
Definition: timeops.c:1767
bool after_period_period_internal(const Period *p1, const Period *p2)
Returns true if the first time value is strictly after the second one (internal function) ...
Definition: timeops.c:1656
TimestampSet * minus_timestampset_period_internal(const TimestampSet *ts, const Period *p)
Returns the difference of the two time values (internal function)
Definition: timeops.c:3820
Datum minus_timestamp_timestampset(PG_FUNCTION_ARGS)
Returns the difference of the two time values.
Definition: timeops.c:3706
bool overafter_periodset_period_internal(const PeriodSet *ps, const Period *p)
Returns true if the first time value is not before the second one (internal function) ...
Definition: timeops.c:2514
Datum overbefore_timestampset_period(PG_FUNCTION_ARGS)
Returns true if the first time value is not after the second one.
Definition: timeops.c:1947
Datum overafter_timestampset_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is not before the second one.
Definition: timeops.c:2352
Datum after_timestampset_period(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly after the second one.
Definition: timeops.c:1567
Datum after_timestamp_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly after the second one.
Definition: timeops.c:1490
Datum contained_period_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is contained by the second one.
Definition: timeops.c:724
Datum overbefore_period_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is not after the second one.
Definition: timeops.c:2069
Datum minus_timestamp_periodset(PG_FUNCTION_ARGS)
Returns the difference of the two time values.
Definition: timeops.c:3738
Datum union_periodset_timestamp(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:3137
bool contains_period_timestampset_internal(const Period *p, const TimestampSet *ts)
Returns true if the first time value contains the second one (internal function)
Definition: timeops.c:370
bool before_timestamp_periodset_internal(TimestampTz t, const PeriodSet *ps)
Returns true if the first time value is strictly before the second one (internal function) ...
Definition: timeops.c:1098
Datum overafter_periodset_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is not before the second one.
Definition: timeops.c:2499
Datum adjacent_period_timestampset(PG_FUNCTION_ARGS)
Returns true if the two time value are adjacent.
Definition: timeops.c:2700
bool overbefore_timestampset_periodset_internal(const TimestampSet *ts, const PeriodSet *ps)
Returns true if the first time value is not after the second one (internal function) ...
Definition: timeops.c:1961
Datum contained_timestampset_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is contained by the second one.
Definition: timeops.c:658
Datum contained_timestamp_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is contained by the second one.
Definition: timeops.c:618
Datum minus_period_periodset(PG_FUNCTION_ARGS)
Returns the difference of the two time values.
Definition: timeops.c:4132
Datum adjacent_timestampset_period(PG_FUNCTION_ARGS)
Returns true if the two time value are adjacent.
Definition: timeops.c:2641
bool after_timestamp_period_internal(TimestampTz t, const Period *p)
Returns true if the first time value is strictly after the second one (internal function) ...
Definition: timeops.c:1456
Datum union_timestampset_timestamp(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:2958
Datum contains_timestampset_timestamp(PG_FUNCTION_ARGS)
Returns true if the first time value contains the second one.
Definition: timeops.c:283
Datum overafter_timestamp_period(PG_FUNCTION_ARGS)
Returns true if the first time value is not before the second one.
Definition: timeops.c:2226
Datum before_period_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly before the second one.
Definition: timeops.c:1262
PeriodSet * minus_periodset_period_internal(const PeriodSet *ps, const Period *p)
Returns the difference of the two time values (internal function)
Definition: timeops.c:4316
Datum intersection_period_period(PG_FUNCTION_ARGS)
Returns the intersection of the two time values (internal function)
Definition: timeops.c:3514
bool contains_timestampset_timestampset_internal(const TimestampSet *ts1, const TimestampSet *ts2)
Returns true if the first time value contains the second one (internal function)
Definition: timeops.c:296
bool before_periodset_timestamp_internal(const PeriodSet *ps, TimestampTz t)
Returns true if the first time value is strictly before the second one (internal function) ...
Definition: timeops.c:1324
Datum intersection_period_periodset(PG_FUNCTION_ARGS)
Returns the intersection of the two time values.
Definition: timeops.c:3562
Datum overlaps_period_timestampset(PG_FUNCTION_ARGS)
Returns true if the two time values overlap.
Definition: timeops.c:889
Datum after_period_timestamp(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly after the second one.
Definition: timeops.c:1619
Datum overlaps_timestampset_timestampset(PG_FUNCTION_ARGS)
Returns true if the two time values overlap.
Definition: timeops.c:798
bool after_periodset_period_internal(const PeriodSet *ps, const Period *p)
Returns true if the first time value is strictly after the second one (internal function) ...
Definition: timeops.c:1756
bool contains_periodset_periodset_internal(const PeriodSet *ps1, const PeriodSet *ps2)
Returns true if the first time value contains the second one (internal function)
Definition: timeops.c:556
Datum before_periodset_period(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly before the second one.
Definition: timeops.c:1387
bool contains_timestampset_timestamp_internal(const TimestampSet *ts, TimestampTz t)
Returns true if the first time value contains the second one (internal function)
Definition: timeops.c:267
bool overafter_timestampset_timestampset_internal(const TimestampSet *ts1, const TimestampSet *ts2)
Returns true if the first time value is not before the second one (internal function) ...
Definition: timeops.c:2288
Datum minus_period_period(PG_FUNCTION_ARGS)
Returns the difference of the two time values (internal function)
Definition: timeops.c:4060
bool overlaps_period_periodset_internal(const Period *p, const PeriodSet *ps)
Returns true if the two time values overlap (internal function)
Definition: timeops.c:930
Datum union_timestampset_timestampset(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:2981
Datum adjacent_periodset_timestampset(PG_FUNCTION_ARGS)
Returns true if the two time value are adjacent.
Definition: timeops.c:2784
Datum overlaps_periodset_period(PG_FUNCTION_ARGS)
Returns true if the two time values overlap.
Definition: timeops.c:985
bool before_timestamp_period_internal(TimestampTz t, const Period *p)
Returns true if the first time value is strictly before the second one (internal function) ...
Definition: timeops.c:1075
bool overbefore_timestamp_period_internal(TimestampTz t, const Period *p)
Returns true if the first time value is not after the second one (internal function) ...
Definition: timeops.c:1836
bool adjacent_period_period_internal(const Period *p1, const Period *p2)
Returns true if the two time value are adjacent (internal function)
Definition: timeops.c:2713
Datum intersection_timestampset_timestampset(PG_FUNCTION_ARGS)
Returns the intersection of the two time values.
Definition: timeops.c:3391
bool adjacent_periodset_period_internal(const PeriodSet *ps, const Period *p)
TimestampSet * union_timestamp_timestampset_internal(TimestampTz t, const TimestampSet *ts)
Returns the union of the two time values (internal function)
Definition: timeops.c:2880
Datum intersection_timestampset_timestamp(PG_FUNCTION_ARGS)
Returns the intersection of the two time values.
Definition: timeops.c:3365
Datum before_timestamp_period(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly before the second one.
Definition: timeops.c:1086
bool overbefore_timestampset_period_internal(const TimestampSet *ts, const Period *p)
Returns true if the first time value is not after the second one (internal function) ...
Definition: timeops.c:1936
Period * intersection_period_period_internal(const Period *p1, const Period *p2)
Returns the intersection of the two time values (internal function)
Definition: timeops.c:3494
Datum union_timestampset_period(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:2996
Datum after_period_period(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly after the second one.
Definition: timeops.c:1667
Datum contains_timestampset_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value contains the second one.
Definition: timeops.c:327
bool overlaps_timestampset_periodset_internal(const TimestampSet *ts, const PeriodSet *ps)
Returns true if the two time values overlap (internal function)
Definition: timeops.c:846
Datum union_timestamp_period(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:2925
bool adjacent_timestampset_period_internal(const TimestampSet *ts, const Period *p)
Returns true if the two time value are adjacent (internal function)
Definition: timeops.c:2624
Datum overbefore_periodset_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is not after the second one.
Definition: timeops.c:2120
Datum before_timestampset_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly before the second one.
Definition: timeops.c:1212
Datum overbefore_timestamp_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is not after the second one.
Definition: timeops.c:1870
bool overbefore_periodset_period_internal(const PeriodSet *ps, const Period *p)
Returns true if the first time value is not after the second one (internal function) ...
Definition: timeops.c:2135
Datum overbefore_timestampset_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value is not after the second one.
Definition: timeops.c:1973
Datum intersection_timestamp_periodset(PG_FUNCTION_ARGS)
Returns the intersection of the two time values.
Definition: timeops.c:3349
RelativeTimePos pos_timestamp_timestamp(TimestampTz t1, TimestampTz t2)
Determine the relative position of the two timestamps.
Definition: timeops.c:73
Datum intersection_timestampset_period(PG_FUNCTION_ARGS)
Returns the intersection of the two time values (internal function)
Definition: timeops.c:3417
Datum before_timestampset_period(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly before the second one.
Definition: timeops.c:1186
Datum after_timestamp_period(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly after the second one.
Definition: timeops.c:1467
Datum minus_timestampset_periodset(PG_FUNCTION_ARGS)
Returns the difference of the two time values.
Definition: timeops.c:3857
bool before_timestampset_periodset_internal(const TimestampSet *ts, const PeriodSet *ps)
Returns true if the first time value is strictly before the second one (internal function) ...
Definition: timeops.c:1200
bool after_period_periodset_internal(const Period *p, const PeriodSet *ps)
Returns true if the first time value is strictly after the second one (internal function) ...
Definition: timeops.c:1679
PeriodSet * union_periodset_periodset_internal(const PeriodSet *ps1, const PeriodSet *ps2)
Returns the union of the two time values (internal function)
Definition: timeops.c:3183
Datum contains_periodset_periodset(PG_FUNCTION_ARGS)
Returns true if the first time value contains the second one.
Definition: timeops.c:600
Datum overbefore_periodset_timestamp(PG_FUNCTION_ARGS)
Returns true if the first time value is not after the second one.
Definition: timeops.c:2094
bool overafter_periodset_timestamp_internal(const PeriodSet *ps, TimestampTz t)
Returns true if the first time value is not before the second one (internal function) ...
Definition: timeops.c:2462
Datum minus_timestampset_timestampset(PG_FUNCTION_ARGS)
Returns the difference of the two time values.
Definition: timeops.c:3804
bool overbefore_periodset_timestamp_internal(const PeriodSet *ps, TimestampTz t)
Returns true if the first time value is not after the second one (internal function) ...
Definition: timeops.c:2083
Datum union_period_period(PG_FUNCTION_ARGS)
Returns the union of the two time values.
Definition: timeops.c:3095
RelativeTimePos pos_period_timestamp(const Period *p, TimestampTz t)
Determine the relative position of the period and the timestamp.
Definition: timeops.c:87
Datum contains_period_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value contains the second one.
Definition: timeops.c:384
Datum overafter_periodset_timestamp(PG_FUNCTION_ARGS)
Returns true if the first time value is not before the second one.
Definition: timeops.c:2473
Datum overbefore_timestampset_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is not after the second one.
Definition: timeops.c:1921
bool overlaps_period_period_internal(const Period *p1, const Period *p2)
Returns true if the two time values overlap (internal function)
Definition: timeops.c:902
bool overafter_period_timestampset_internal(const Period *p, const TimestampSet *ts)
Returns true if the first time value is not before the second one (internal function) ...
Definition: timeops.c:2389
bool contains_periodset_timestampset_internal(const PeriodSet *ps, const TimestampSet *ts)
Returns true if the first time value contains the second one (internal function)
Definition: timeops.c:456
PeriodSet * minus_period_timestampset_internal(const Period *p, const TimestampSet *ts)
Returns the difference of the two time values (internal function)
Definition: timeops.c:3941
bool overafter_periodset_periodset_internal(const PeriodSet *ps1, const PeriodSet *ps2)
Returns true if the first time value is not before the second one (internal function) ...
Definition: timeops.c:2539
Datum overlaps_periodset_periodset(PG_FUNCTION_ARGS)
Returns true if the two time values overlap (internal function)
Definition: timeops.c:1032
bool contains_periodset_timestamp_internal(const PeriodSet *ps, TimestampTz t)
Returns true if the first time value contains the second one (internal function)
Definition: timeops.c:425
bool overafter_period_period_internal(const Period *p1, const Period *p2)
Returns true if the first time value is not before the second one (internal function) ...
Definition: timeops.c:2414
bool overafter_timestamp_timestampset_internal(TimestampTz t, const TimestampSet *ts)
Returns true if the first time value is not before the second one (internal function) ...
Definition: timeops.c:2190
Datum before_period_timestamp(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly before the second one.
Definition: timeops.c:1239
bool adjacent_period_timestamp_internal(const Period *p, TimestampTz t)
PeriodSet * minus_period_period_internal(const Period *p1, const Period *p2)
Returns the difference of the two time values (internal function)
Definition: timeops.c:4042
Datum after_periodset_timestampset(PG_FUNCTION_ARGS)
Returns true if the first time value is strictly after the second one.
Definition: timeops.c:1741
Datum adjacent_period_timestamp(PG_FUNCTION_ARGS)
Returns true if the two time value are adjacent.
Definition: timeops.c:2688
Datum intersection_periodset_periodset(PG_FUNCTION_ARGS)
Returns the intersection of the two time values.
Definition: timeops.c:3670
Datum adjacent_period_periodset(PG_FUNCTION_ARGS)
Returns true if the two time value are adjacent.
Definition: timeops.c:2756
Datum overafter_timestampset_timestamp(PG_FUNCTION_ARGS)
Returns true if the first time value is not before the second one.
Definition: timeops.c:2274