model-writtenrun 1946 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that DROP SUBSCRIPTION can block connections to a newly created database because its exclusive pg_subscription lock conflicts with startup cache initialization, reproducing the issue from PostgreSQL 13 through master in #1.
- Vignesh reproduced the deadlock and proposed leaving slot_name unset for subscriptions created with connect=false in #2; Dilip supplied a warning-hint fix on top in #3.
- Hayato showed that explicitly assigning a slot name still causes the hang in #4, and Dilip proposed then withdrew a catalog flag because stable branches could not accept that catalog change in #5 and #6.
- Vignesh proposed weakening the catalog lock and coordinating through subscription-object locks in #7, which Dilip implemented with launcher-side locking and an existence scan in #9, replacing the slot-name workaround.
- Álvaro Herrera questioned the sequential scan, transaction boundaries, and lock resource ownership in #10; Dilip responded by connecting the launcher to postgres and using a syscache lookup inside a transaction in #12.
- Amit objected that the launcher connection would prevent dropping the postgres database and proposed locking during worker initialization in #13; Dilip adopted that simpler approach in #15 and removed explicit unlocks in #16.
- Dilip supplied branch-specific versions in #19, after which Amit corrected the catalog lock to RowExclusiveLock because DROP SUBSCRIPTION deletes a catalog row and supplied comment cleanup in #20; Dilip incorporated those changes in #21.
- Amit requested a reproducer test in #22, and discussion of logical-slot requirements and subscription cleanup led to regression tests and pg_upgrade configuration adjustments in #26, with Dilip reporting successful check-world runs.
- Vignesh pointed out that the new configuration affected the entire regression suite in #29, so Dilip moved the reproducer to the subscription TAP tests in #30 and refined formatting, object names, and database cleanup in #31.
- Amit approved the general result and supplied clearer test commentary in #32; Dilip accepted it in #33 while investigating PostgreSQL 13 error-text differences and ensuring the test connected to the intended publisher.
- Vignesh identified the exact PostgreSQL 13 wording difference and reported a passing test in #34; Dilip supplied corrected patches for all branches, explicit publisher connection strings, and successful check-world results in #35.
- The supplied candidate 0a98f24a65 follows the final submission #35, preserving the weaker catalog lock and worker-side subscription lock with light explanatory and test refinements; exact comparison is limited by the missing final attachments.
- Amit announced the push in #36, with the commit recording backpatching through PostgreSQL 13, and Dilip's acknowledgment in #37 closed the thread with no remaining work identified.