yukkop 58e9aa8fad feat(db-tool): hectic-inheritance: bootstrap hectic.created_at / hectic.updated_at inheritance hook
Adds a SQL bundle plus event triggers that enforce `INHERITS (hectic.created_at)`
on every user CREATE TABLE and auto-attach a BEFORE UPDATE row trigger when a
table inherits `hectic.updated_at`. Always-exempt: `hectic`, `information_schema`,
`pg_*`, declarative partitions, temp tables. Per-DB opt-out via the GUC
`hectic.inheritance_extra_excluded_schemas`.

Exposed three ways:
  * `pkgs.hectic.hectic-inheritance` — derivation with the SQL at
    $out/share/hectic/hectic-inheritance.sql
  * `self.lib.hecticInheritance.{sql,path}` — pkgs-free Nix surface
  * `postgres-init` opt-in via `PG_HECTIC_INHERITANCE=1` (HECTIC_INHERITANCE_SQL
    overrides the default)

Test postgres-init-hectic-inheritance covers all six branches: bootstrap,
non-inheriting reject, accepting inheritance, auto updated_at trigger fires,
GUC exclusion, declarative partition exemption.
2026-04-30 15:16:57 +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%