model-writtenrun 9755 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Rowley reported that RelationGetIndexAttrBitmap() copied the primary-key bitmap despite its comment promising to return the original working copy, unlike the other three cases #1.
- David Rowley attached a one-line fix returning the already-built pkindexattrs bitmap from the same memory context #1.
- Tom Lane agreed that the existing code was wrong and said he would commit the fix shortly #2.
- Tom Lane committed the attached patch unchanged as 8f9e934ab7, crediting David Rowley and describing the redundant copy as a copy-and-paste mistake.
- David Rowley thanked Tom Lane after the commit, closing the thread with the fix landed and no outstanding changes #3.