Skip to content

temporalbox

Cube representations of keyed temporal intervals

DBIS_Assignment · Cube representations of keyed temporal intervals

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102210temporalboxDBIS_Assignment1.0TIMESQL
Relationships
Requirescube

Usage

Sources:

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

CREATE EXTENSION cube WITH SCHEMA public;
CREATE EXTENSION temporalbox;
SELECT temporalbox(7, '[2026-01-01,2026-02-01)'::tsrange);
SELECT temporalbox_point(7, TIMESTAMP '2026-01-15');

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.

Table reader