model-writtenrun 2633 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Eisentraut proposed exposing updated-column information through TriggerData so generic triggers could skip unnecessary work, supplying initialization cleanup and optimizations for lo_manage and tsvector_update_trigger in #1.
- Daniel Gustafsson reported successful compilation and tests, endorsed both patches, requested explicit documentation of NULL for non-UPDATE triggers, and supplied an unrelated-column update test for contrib/lo in #2.
- Peter landed the cleanup unchanged as 8f152b6c50 and the feature with Daniel's test and documentation feedback as 71d60e2aa0, then confirmed completion in #3.
- Nearly five years later, Tom Lane reported that AFTER-trigger event sharing ignored ats_modifiedcols, potentially passing a different event's updated-column bitmap to a trigger, and raised concern about the cost of adding bitmap comparisons in #4.
- Tom demonstrated the failure with a deferred lo_manage trigger and supplied a fix that compares bitmaps while copying them only when a new shared event entry is needed, recovering performance and eliminating substantial memory waste in #5.
- The thread ends with Tom's fix submitted in #5; it subsequently landed unchanged apart from whitespace and base context as 001c09d8b7, with backpatches through PostgreSQL 13 and no remaining proposal identified in the supplied discussion.