model-writtenrun 7767 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Smith reported that concurrent origin drops could produce internal cache errors and proposed tolerating missing origins in #1; Amit Kapila instead proposed performing the name lookup under the deletion lock in #2, and Peter suggested a reusable internal API in #3.
- Peter's first implementation in #5 used RowExclusiveLock, which Amit explained did not exclude concurrent callers in #6; Peter consequently restructured the patch around ExclusiveLock and a shared deletion helper in #7.
- Amit tested Peter's revision and observed a proper missing-origin error instead of internal errors, then supplied #8 to fix the same lookup-before-lock pattern in DropSubscription() and improve comments and formatting.
- Peter and Amit initially favored retaining the old API for compatibility in #9 and #10, but Euler argued for removing unused code in #11; Amit removed it in #12, and Petr Jelinek accepted the extension-facing change in #13.
- Further testing by Amit exposed a remaining concurrent-deletion error because the lock was released before transaction completion in #14, leading to #15, which retained it until commit; Euler approved that version in #16.
- Alvaro Herrera identified a stale comment and possible blocking of unrelated origin operations in #17; Amit corrected the comment and documented a possible per-origin locking optimization in #19, and Alvaro agreed to defer that optimization unless a real performance problem emerged in #20.
- Amit proposed a development-branch-only fix because the issue concerned misleading errors without a user report in #21, and Alvaro agreed in #22; cd142e032e landed #19 unchanged, with Amit confirming the push in #23, completing the fix while leaving finer-grained locking as a possible future improvement.