Skip to content

Commit 5aa03f9

Browse files
committed
Remove useless bms_copy step in RelationGetIndexAttrBitmap.
Seems to be from a bad case of copy-and-paste-itis in commit 665d1fa. It wouldn't be quite so annoying if it didn't contradict the comment half a dozen lines above. David Rowley Discussion: https://postgr.es/m/CAKJS1f95Dyf8Qkdz4W+PbCmT-HTb54tkqUCC8isa2RVgSJ_pXQ@mail.gmail.com
1 parent 3037b28 commit 5aa03f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/cache/relcache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5063,7 +5063,7 @@ RelationGetIndexAttrBitmap(Relation relation, IndexAttrBitmapKind attrKind)
50635063
case INDEX_ATTR_BITMAP_KEY:
50645064
return uindexattrs;
50655065
case INDEX_ATTR_BITMAP_PRIMARY_KEY:
5066-
return bms_copy(relation->rd_pkattr);
5066+
return pkindexattrs;
50675067
case INDEX_ATTR_BITMAP_IDENTITY_KEY:
50685068
return idindexattrs;
50695069
default:

0 commit comments

Comments
 (0)