temporalbox
DBIS_Assignment · Cube representations of keyed temporal intervals
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102210 | temporalbox | DBIS_Assignment | 1.0 | TIME | SQL |
| Relationships | |
|---|---|
| Requires | cube |
Usage
Sources:
- postgresql/contrib/temporalbox/temporalbox–1.0.sql
- README.md
- postgresql/contrib/temporalbox/temporalbox.control
temporalbox is a small SQL helper extension in an academic temporal-indexing project. It maps an integer key and timestamp interval to a two-dimensional cube value for spatial-index experiments.
Core Workflow
Operational Boundaries
Install cube in public first: the functions explicitly call public.cube, and the install script’s dependency creation is not a control-file dependency. temporalbox maps a tsrange; temporalbox_point maps one timestamp; temporalbox_range maps two bounds. Time is represented as floating-point epoch seconds. An unbounded upper range becomes infinity, but range inclusivity is not retained by the box representation; use an exact range predicate when endpoint semantics matter. No preload or native library is involved. The surrounding project contains modified PostgreSQL index code; this entry describes only the SQL helper and does not certify its broader kernel changes or a PostgreSQL-major matrix.