diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-03-30 07:16:24 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-03-30 07:16:24 +0100 |
commit | 6b8b5364ddd0e4d882562615c6b6c28638ade9f2 (patch) | |
tree | dcb5bd3e1ed79691e595c206e32cc84c8eb6ff22 /src | |
parent | 173268f4d011fcae1f909c811e264baf6c838e7a (diff) | |
download | postgresql-6b8b5364ddd0e4d882562615c6b6c28638ade9f2.tar.gz postgresql-6b8b5364ddd0e4d882562615c6b6c28638ade9f2.zip |
Small code simplification for REINDEX CONCURRENTLY
This was left over from an earlier code structure.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/commands/indexcmds.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); } /* |