model-writtenrun 7859 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zhao Rui reported partition-root logical replication running for five days with 99% CPU and supplied a reproduction in #1.
- Zhao Rui traced the slowdown to accumulating root-relation references and attached a patch that closes the ancestor relation after processing INSERT, UPDATE or DELETE in #1.
- Ashutosh Bapat judged the fix correct and requested measurements with the patch applied to establish its contribution to the slowdown in #2.
- The parallel discussion in thread #43471 supplied the newer revision #466379 attributed to 044aa9e70e, which preserves the proposed cleanup while adding RelationIsValid and clearing the ancestor pointer.
- Amit Kapila announced that the fix had been pushed and linked the parallel discussion in #3; the thread ended with the fix committed, without the requested performance measurements.