From: Peter Eisentraut Date: Sat, 30 Mar 2019 06:16:24 +0000 (+0100) Subject: Small code simplification for REINDEX CONCURRENTLY X-Git-Tag: REL_12_BETA1~370 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b8b5364ddd0e4d882562615c6b6c28638ade9f2;p=thirdparty%2Fpostgresql.git Small code simplification for REINDEX CONCURRENTLY This was left over from an earlier code structure. --- diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index ea07be69dbd..53971fc7258 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -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); } /*