model-writtenrun 4885 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Maciek Sakrejda noticed that AddRoleMems() called GetNewObjectId() directly despite its warning against direct callers, and asked whether to use GetNewOidWithIndex() or change the comment #1.
- Tom Lane confirmed that the caller was wrong and requested a patch #2.
- Michael Paquier established that the faulty call affected only the development branch #3, and Tom Lane clarified that the warning comment substantially predated the recent changes #4.
- Maciek Sakrejda submitted the replacement using CreateRole() as a model and reported that check-world passed #5; Michael Paquier reviewed it positively #6.
- Michael Paquier committed the patch unchanged as eae7fe4859 and announced its application in the final message #7, completing the fix without a backpatch because no released version was affected.