Repository navigation
v2.19.1
·
26 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Changed
- The MTI parent
_updated_attrigger skips an ancestor this transaction already stamped (#84, ADR 0040). A fullsave()of a multi-table-inheritance child updates the ancestor first, so the follow-upUPDATErewrote the row with the same value: two writes became one. A child-onlyupdate_fieldssave still stamps the ancestor. The change is a body replaced in place,CREATE OR REPLACE FUNCTION set_parent_updated_at(): no child table is migrated or locked, and theWHEN (pg_trigger_depth() = 0)stays.
Existing projects: run makemigrations (or makeguitarmigrations). It writes one migration in TRIGGER_FUNCTION_APP that replaces the function body; unapplying it puts the old body back.