From 6b8b5364ddd0e4d882562615c6b6c28638ade9f2 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 30 Mar 2019 07:16:24 +0100 Subject: [PATCH] Small code simplification for REINDEX CONCURRENTLY This was left over from an earlier code structure. --- src/backend/commands/indexcmds.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index ea07be69db..53971fc725 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); } /*