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
2026-04-14 08:43:56 +00:00
2025-11-03 18:51:38 +00:00
2026-04-26 22:22:15 +00:00
2026-04-27 12:58:36 +00:00
2026-01-04 20:40:43 +00:00
2025-04-17 06:22:21 +03:00
2026-04-26 22:22:15 +00:00
2026-04-26 13:52:17 +00:00
Description
No description provided
1.7 MiB
Languages
C 32.7%
Shell 30.4%
Nix 22.5%
PLpgSQL 5.2%
Rust 4.2%
Other 4.9%