bitemp_retrieval
Retrieval, coalescing, and join helpers for bitemporal tables created by pg_bitemporal.
bitemp_retrieval · Retrieval, coalescing, and join helpers for bitemporal tables created by pg_bitemporal.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101297 | bitemp_retrieval | bitemp_retrieval | 0.0.1 | TIME | Unknown | C |
Usage
Sources:
- Official upstream README
- Official extension control file (bitemp_retrieval.control)
- Official extension SQL (bitemp_retrieval–0.0.1.sql)
bitemp_retrieval — Postgresql extension for retrieval functionality on bitemporal tables created using pg_bitemporal extension by Henrietta Dombrovskaya. Use it for the corresponding scheduling, temporal, or time-series workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
bitemp_contains_now(effective_range temporal_relationships.timeperiod, asserted_range temporal_relationships.timeperiod)is an extension function and returnsBOOLEAN.bitemp_contains_ts(effective_range temporal_relationships.timeperiod, asserted_range temporal_relationships.timeperiod, effective_ts timestamptz, asserted_ts timestamptz)is an extension function and returnsBOOLEAN.bitemporal_internal.ll_register_temporal_attribute_property(p_schema TEXT, p_table TEXT, p_attr_name TEXT, p_attr_property bitemporal_internal.temporal_attribute_property_enum)is an extension function and returnsINTEGER.get_interval_overlap(a temporal_relationships.timeperiod, b temporal_relationships.timeperiod)is an extension function and returnstemporal_relationships.get_sum(int, int)is an extension function and returnsint.interval_contains_now(interv temporal_relationships.timeperiod)is an extension function and returnsBOOLEAN.interval_contains_ts(interv temporal_relationships.timeperiod, ts timestamptz)is an extension function and returnsBOOLEAN.interval_join(a temporal_relationships.timeperiod, b temporal_relationships.timeperiod)is an extension function and returnstemporal_relationships.interval_joinable(a temporal_relationships.timeperiod, b temporal_relationships.timeperiod)is an extension function and returnsBOOLEAN.interval_len(interv temporal_relationships.timeperiod)is an extension function and returnsINTERVAL.intervals_contains_now(intervs temporal_relationships.timeperiod[])is an extension function and returnsBOOLEAN.intervals_contains_ts(intervs temporal_relationships.timeperiod[], ts timestamptz)is an extension function and returnsBOOLEAN.ita_now(p_schema TEXT, p_table TEXT, p_group_by TEXT[], p_aggr_funcs TEXT[], p_aggr_target TEXT[], p_aggr_fieldnames TEXT[])is an extension function and returnsSETOF.mwta_now(p_schema TEXT, p_table TEXT, p_group_by TEXT[], p_aggr_funcs TEXT[], p_aggr_target TEXT[], p_aggr_fieldnames TEXT[], p_window_size INTERVAL)is an extension function and returnsSETOF.
Requirements and Caveats
- The reviewed control file declares default version
0.0.1. - The control file marks the extension as non-relocatable.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.