Skip to content

Commit 6b8b536

Browse files
committed
Small code simplification for REINDEX CONCURRENTLY
This was left over from an earlier code structure.
1 parent 173268f commit 6b8b536

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/commands/indexcmds.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3106,13 +3106,13 @@ ReindexRelationConcurrently(Oid relationOid, int options)
31063106
foreach(lc, indexIds)
31073107
{
31083108
Oid oldIndexId = lfirst_oid(lc);
3109-
ObjectAddress *object = palloc(sizeof(ObjectAddress));
3109+
ObjectAddress object;
31103110

3111-
object->classId = RelationRelationId;
3112-
object->objectId = oldIndexId;
3113-
object->objectSubId = 0;
3111+
object.classId = RelationRelationId;
3112+
object.objectId = oldIndexId;
3113+
object.objectSubId = 0;
31143114

3115-
add_exact_object_address(object, objects);
3115+
add_exact_object_address(&object, objects);
31163116
}
31173117

31183118
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy