vacuumlazy.c: Remove unnecessary parentheses.
authorPeter Geoghegan <pg@bowt.ie>
Fri, 27 Aug 2021 16:47:16 +0000 (09:47 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Fri, 27 Aug 2021 16:47:16 +0000 (09:47 -0700)
This was arguably a minor oversight in commit b4af70cb, which cleaned up
the function signatures of functions that modify IndexBulkDeleteResult
variables.

src/backend/access/heap/vacuumlazy.c

index 334d8a2aa7159f4b9ae8fbff962ef960cf640058..fe2e6d021f4bff4af3260bc14dcea38870f89ae4 100644 (file)
@@ -2859,7 +2859,7 @@ do_parallel_processing(LVRelState *vacrel, LVShared *lvshared)
            continue;
 
        /* Do vacuum or cleanup of the index */
-       istat = (vacrel->indstats[idx]);
+       istat = vacrel->indstats[idx];
        vacrel->indstats[idx] = parallel_process_one_index(indrel, istat,
                                                           lvshared,
                                                           shared_istat,
@@ -2910,7 +2910,7 @@ do_serial_processing_for_unsafe_indexes(LVRelState *vacrel, LVShared *lvshared)
            continue;
 
        /* Do vacuum or cleanup of the index */
-       istat = (vacrel->indstats[idx]);
+       istat = vacrel->indstats[idx];
        vacrel->indstats[idx] = parallel_process_one_index(indrel, istat,
                                                           lvshared,
                                                           shared_istat,
@@ -3123,15 +3123,15 @@ lazy_cleanup_one_index(Relation indrel, IndexBulkDeleteResult *istat,
        ereport(elevel,
                (errmsg("index \"%s\" now contains %.0f row versions in %u pages",
                        RelationGetRelationName(indrel),
-                       (istat)->num_index_tuples,
-                       (istat)->num_pages),
+                       istat->num_index_tuples,
+                       istat->num_pages),
                 errdetail("%.0f index row versions were removed.\n"
                           "%u index pages were newly deleted.\n"
                           "%u index pages are currently deleted, of which %u are currently reusable.\n"
                           "%s.",
-                          (istat)->tuples_removed,
-                          (istat)->pages_newly_deleted,
-                          (istat)->pages_deleted, (istat)->pages_free,
+                          istat->tuples_removed,
+                          istat->pages_newly_deleted,
+                          istat->pages_deleted, istat->pages_free,
                           pg_rusage_show(&ru0))));
    }
 
@@ -4069,7 +4069,7 @@ end_parallel_vacuum(LVRelState *vacrel)
        if (shared_istat->updated)
        {
            indstats[idx] = (IndexBulkDeleteResult *) palloc0(sizeof(IndexBulkDeleteResult));
-           memcpy(indstats[idx], &(shared_istat->istat), sizeof(IndexBulkDeleteResult));
+           memcpy(indstats[idx], &shared_istat->istat, sizeof(IndexBulkDeleteResult));
        }
        else
            indstats[idx] = NULL;