Small code simplification for REINDEX CONCURRENTLY

This was left over from an earlier code structure.
This commit is contained in:
Peter Eisentraut 2019-03-30 07:16:24 +01:00
parent 173268f4d0
commit 6b8b5364dd
1 changed files with 5 additions and 5 deletions

View File

@ -3106,13 +3106,13 @@ ReindexRelationConcurrently(Oid relationOid, int options)
foreach(lc, indexIds) foreach(lc, indexIds)
{ {
Oid oldIndexId = lfirst_oid(lc); Oid oldIndexId = lfirst_oid(lc);
ObjectAddress *object = palloc(sizeof(ObjectAddress)); ObjectAddress object;
object->classId = RelationRelationId; object.classId = RelationRelationId;
object->objectId = oldIndexId; object.objectId = oldIndexId;
object->objectSubId = 0; object.objectSubId = 0;
add_exact_object_address(object, objects); add_exact_object_address(&object, objects);
} }
/* /*