mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
vacuumlazy.c: Remove unnecessary parentheses.
This was arguably a minor oversight in commit b4af70cb, which cleaned up the function signatures of functions that modify IndexBulkDeleteResult variables.
This commit is contained in:
parent
e2799528d4
commit
de5dcb0796
@ -2859,7 +2859,7 @@ do_parallel_processing(LVRelState *vacrel, LVShared *lvshared)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Do vacuum or cleanup of the index */
|
/* Do vacuum or cleanup of the index */
|
||||||
istat = (vacrel->indstats[idx]);
|
istat = vacrel->indstats[idx];
|
||||||
vacrel->indstats[idx] = parallel_process_one_index(indrel, istat,
|
vacrel->indstats[idx] = parallel_process_one_index(indrel, istat,
|
||||||
lvshared,
|
lvshared,
|
||||||
shared_istat,
|
shared_istat,
|
||||||
@ -2910,7 +2910,7 @@ do_serial_processing_for_unsafe_indexes(LVRelState *vacrel, LVShared *lvshared)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Do vacuum or cleanup of the index */
|
/* Do vacuum or cleanup of the index */
|
||||||
istat = (vacrel->indstats[idx]);
|
istat = vacrel->indstats[idx];
|
||||||
vacrel->indstats[idx] = parallel_process_one_index(indrel, istat,
|
vacrel->indstats[idx] = parallel_process_one_index(indrel, istat,
|
||||||
lvshared,
|
lvshared,
|
||||||
shared_istat,
|
shared_istat,
|
||||||
@ -3123,15 +3123,15 @@ lazy_cleanup_one_index(Relation indrel, IndexBulkDeleteResult *istat,
|
|||||||
ereport(elevel,
|
ereport(elevel,
|
||||||
(errmsg("index \"%s\" now contains %.0f row versions in %u pages",
|
(errmsg("index \"%s\" now contains %.0f row versions in %u pages",
|
||||||
RelationGetRelationName(indrel),
|
RelationGetRelationName(indrel),
|
||||||
(istat)->num_index_tuples,
|
istat->num_index_tuples,
|
||||||
(istat)->num_pages),
|
istat->num_pages),
|
||||||
errdetail("%.0f index row versions were removed.\n"
|
errdetail("%.0f index row versions were removed.\n"
|
||||||
"%u index pages were newly deleted.\n"
|
"%u index pages were newly deleted.\n"
|
||||||
"%u index pages are currently deleted, of which %u are currently reusable.\n"
|
"%u index pages are currently deleted, of which %u are currently reusable.\n"
|
||||||
"%s.",
|
"%s.",
|
||||||
(istat)->tuples_removed,
|
istat->tuples_removed,
|
||||||
(istat)->pages_newly_deleted,
|
istat->pages_newly_deleted,
|
||||||
(istat)->pages_deleted, (istat)->pages_free,
|
istat->pages_deleted, istat->pages_free,
|
||||||
pg_rusage_show(&ru0))));
|
pg_rusage_show(&ru0))));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4069,7 +4069,7 @@ end_parallel_vacuum(LVRelState *vacrel)
|
|||||||
if (shared_istat->updated)
|
if (shared_istat->updated)
|
||||||
{
|
{
|
||||||
indstats[idx] = (IndexBulkDeleteResult *) palloc0(sizeof(IndexBulkDeleteResult));
|
indstats[idx] = (IndexBulkDeleteResult *) palloc0(sizeof(IndexBulkDeleteResult));
|
||||||
memcpy(indstats[idx], &(shared_istat->istat), sizeof(IndexBulkDeleteResult));
|
memcpy(indstats[idx], &shared_istat->istat, sizeof(IndexBulkDeleteResult));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
indstats[idx] = NULL;
|
indstats[idx] = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user