model-writtenrun 7445 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Smith reported a deadlock when two logical replication subscriptions truncate the same table and supplied a fix making apply_handle_truncate() acquire AccessExclusiveLock, together with a regression test #1.
- Amit Kapila confirmed the cycle between a pg_class update and a relation lock, and questioned the test's synchronous replication setup #2; Tang reproduced the failure asynchronously and submitted a test revision removing that setup #4.
- Dilip Kumar questioned whether worker scheduling would reliably trigger the failure #3, but Amit and Dilip supported retaining coverage of multiple subscriptions despite that limitation #5 #6.
- Peter proposed increasing the subscription count and asked where the test belonged #7, then confirmed the bug in PostgreSQL 11.0 #8; Amit kept the two-subscription test in 010_truncate.pl and requested removal of unnecessary synchronous replication references #9.
- Amit prepared patches for PostgreSQL 11 through HEAD, removing unnecessary publisher worker configuration, waiting for initial synchronization, resetting HEAD's inherited synchronous settings, and adapting PostgreSQL 11 connection strings #10.
- Tang tested every branch variant successfully, confirmed the unfixed branches failed, and reported whitespace warnings in the PostgreSQL 11 and 12 patches #11.
- Amit committed the final HEAD variant as 6d0eb38557, with backports through PostgreSQL 11, and closed the thread by confirming the push after whitespace cleanup #12.