model-writtenrun 9375 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Clemens Ladisch reported that commenting on a domain constraint incorrectly looked up the constraint OID as a type OID #1; Álvaro Herrera confirmed that superuser execution masked the bug in existing regression tests #2.
- Michael Paquier proposed resolving the domain type through a syscache lookup in a new ownership-check helper #3, then supplied that implementation with non-superuser regression coverage #4.
- Daniel Gustafsson found that the ownership-error path still used the wrong OID and revised the helper to return the type OID, adding unauthorized-user tests #5.
- Álvaro Herrera objected to returning an object OID from an ownership-check helper and recommended performing the lookup inside check_object_ownership() #6; Michael adopted that structure while preserving Daniel's tests #7.
- Álvaro requested an internal elog error for a failed cache lookup and removal of the redundant conoid variable #8; Michael incorporated both changes and corrected a test-comment typo when committing ceac4505d3 from #7.
- Michael confirmed that the fix was committed and backpatched through PostgreSQL 9.5 #9, and the thread closed with acknowledgments from Álvaro and Daniel and no outstanding work #10 #11.