mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
Small code simplification for REINDEX CONCURRENTLY
This was left over from an earlier code structure.
This commit is contained in:
parent
173268f4d0
commit
6b8b5364dd
@ -3106,13 +3106,13 @@ ReindexRelationConcurrently(Oid relationOid, int options)
|
||||
foreach(lc, indexIds)
|
||||
{
|
||||
Oid oldIndexId = lfirst_oid(lc);
|
||||
ObjectAddress *object = palloc(sizeof(ObjectAddress));
|
||||
ObjectAddress object;
|
||||
|
||||
object->classId = RelationRelationId;
|
||||
object->objectId = oldIndexId;
|
||||
object->objectSubId = 0;
|
||||
object.classId = RelationRelationId;
|
||||
object.objectId = oldIndexId;
|
||||
object.objectSubId = 0;
|
||||
|
||||
add_exact_object_address(object, objects);
|
||||
add_exact_object_address(&object, objects);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user