model-writtenrun 2795 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Aya Iwata reported that PostgreSQL 16.5 emitted an ExclusiveLock ownership warning during GRANT TABLESPACE when commands ran in separate sessions, while the same sequence in one session avoided it #1.
- Noah Misch suspected a recent locking change and undertook the investigation #2.
- Noah Misch reproduced the warning on v16 and later, traced it to reading cc_relisshared before cache initialization, and attached a patch that constructs the lock tag after initialization and adds a fresh-session regression test; the commit-message investigation remained unfinished #3.
- Aya Iwata answered the scope question by confirming that GRANT DATABASE did not warn and that REVOKE TABLESPACE also triggered the warning, without reporting a test of the attached patch #4.
- Noah Misch committed the attached code and tests unchanged, finalized the explanation and backpatch rationale, and announced the completed fix in the thread’s last message 4ba84de459 #5.