Content-Length: 274426 | pFad | http://github.com/postgrespro/postgres/commit/6b8b5364ddd0e4d882562615c6b6c28638ade9f2

55 Small code simplification for REINDEX CONCURRENTLY · postgrespro/postgres@6b8b536 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/6b8b5364ddd0e4d882562615c6b6c28638ade9f2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy