Task: SQL variability: TimescaleDB hypertable support

Table of Contents

This page documents a task in the Codegen SQL variability for hypertable, bi-temporal and GIST patterns; model ores.marketdata entities story. It captures the goal, current status, acceptance, and any notes or results.

Goal

Entities can declare themselves as TimescaleDB hypertables in their .org model, and the SQL codegen emits the correct hypertable creation call with partition column and chunk interval.

Status

Field Value
State DONE
Parent story Codegen SQL variability for hypertable, bi-temporal and GIST patterns; model ores.marketdata entities
Now Nothing.
Waiting on Nothing.
Next Nothing.
Last touched 2026-06-30

Acceptance

  • market_observation model sets #+hypertable: true and regenerated SQL includes create_hypertable call byte-identical to the hand-written file (minus comments).

Plan

(Implementation strategy. Written when work starts; key decisions are distilled into the parent story's * Decisions at close, but the plan itself stays — it is the historical record of what we did.)

Notes

PRs

PR Title
   

Review

Comment summary File Decision Notes
       

Result

Implemented in commit 4f587b1ab alongside tasks A5C7C26B and 6365026F. All three SQL variability flags (hypertable, bitemporal_trigger, has_gist_exclusion) were co-delivered in a single template pass. Zero diff on existing domain_entity entities verified.

Emacs 29.3 (Org mode 9.6.15)