Files
util.nix/package
yukkop 2eaa568f5b feat(db-tool): hectic-inheritance: add hectic.immutable + diff coverage
Add a hectic.immutable parent table. Tables inheriting it get auto-attached
BEFORE INSERT/UPDATE/DELETE/TRUNCATE row+statement triggers that block DML
unless the session sets hectic.migration_mode='on' (intended use: SET LOCAL
inside a migration transaction). Same exemptions as the rest of the bundle
apply (hectic schema, partitions, temp tables, GUC-excluded schemas).

database diff now appends an --- IMMUTABLE TABLE DATA --- section to its
output, with per-table unified row diffs of every table inheriting
hectic.immutable, surfacing drift in 'frozen' reference data alongside schema
drift. Subcommand exits non-zero when either schema or data differs.

Test postgres-init-hectic-inheritance extended to 10 cases covering
immutable triggers, DML blocked outside migration_mode, SET LOCAL allowing
DML inside a transaction, GUC not leaking past COMMIT, and TRUNCATE under
migration_mode.
2026-04-30 16:10:38 +00:00
..
2025-09-28 04:44:46 +00:00
2026-03-01 09:36:22 +00:00
2025-02-14 21:06:51 +03:00
2026-02-20 17:18:38 +00:00
2025-02-14 21:06:51 +03:00
2025-02-14 21:06:51 +03:00
2025-02-14 21:06:51 +03:00
2026-02-20 17:18:38 +00:00
2026-02-20 17:18:38 +00:00
2026-02-20 17:18:38 +00:00
2026-02-20 17:18:38 +00:00
2026-02-20 17:18:38 +00:00
2026-02-20 17:18:38 +00:00
2025-07-03 01:21:44 +00:00