Commit 6b8b5364 authored by Peter Eisentraut's avatar Peter Eisentraut

Small code simplification for REINDEX CONCURRENTLY

This was left over from an earlier code structure.
parent 173268f4
...@@ -3106,13 +3106,13 @@ ReindexRelationConcurrently(Oid relationOid, int options) ...@@ -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);
} }
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment