Task: SQL variability: soft-update/soft-delete bi-temporal triggers

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

Hypertable entities (market_observation, market_fixing) can opt into the soft-update/soft-delete bi-temporal trigger pattern rather than the default version-based insert trigger.

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 #+bitemporal_trigger: soft_update_delete and regenerated SQL triggers are byte-identical to the hand-written files.

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)