model-writtenrun 8730 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Fabrízio de Royes Mello reported that parallel pg_restore could install event triggers early enough to fire during subsequent object restoration and supplied a patch leaving them for serial postfork processing in #1.
- Michael Paquier highlighted interactions with GRANT and materialized-view refreshes in #4, and Fabrízio replaced the initial workaround with a dedicated final event-trigger restore pass in #5.
- Vignesh C successfully tested the revised patch, identified trailing whitespace, and asked about regression coverage in #6; no regression test was added, with Tom Lane questioning whether one justified the effort in #7.
- Tom Lane argued that materialized views should refresh in the database’s normal post-restore state and posted #7, combining event triggers and refreshes in the existing post-ACL pass and updating pg_dump’s sorting rules instead of adding another pass.
- Fabrízio questioned whether refreshes firing auditing event triggers could alter the restored state in #8; Tom explained that triggers can also interfere with restoring other triggers, so completely preventing such effects is impossible, and defended refreshing materialized views against the final catalog state in #9.
- Fabrízio accepted the reasoning, confirmed that the final patch solved the original complaint, and requested backpatching in #10.
- Tom committed #7 unchanged as 8728b2c703 and confirmed completion in #11, with backports to all supported branches; Fabrízio’s thanks in #12 closed the thread with no outstanding revision.