Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitde5dcb0

Browse files
vacuumlazy.c: Remove unnecessary parentheses.
This was arguably a minor oversight in commitb4af70c, which cleaned upthe function signatures of functions that modify IndexBulkDeleteResultvariables.
1 parente279952 commitde5dcb0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎src/backend/access/heap/vacuumlazy.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2859,7 +2859,7 @@ do_parallel_processing(LVRelState *vacrel, LVShared *lvshared)
28592859
continue;
28602860

28612861
/* Do vacuum or cleanup of the index */
2862-
istat=(vacrel->indstats[idx]);
2862+
istat=vacrel->indstats[idx];
28632863
vacrel->indstats[idx]=parallel_process_one_index(indrel,istat,
28642864
lvshared,
28652865
shared_istat,
@@ -2910,7 +2910,7 @@ do_serial_processing_for_unsafe_indexes(LVRelState *vacrel, LVShared *lvshared)
29102910
continue;
29112911

29122912
/* Do vacuum or cleanup of the index */
2913-
istat=(vacrel->indstats[idx]);
2913+
istat=vacrel->indstats[idx];
29142914
vacrel->indstats[idx]=parallel_process_one_index(indrel,istat,
29152915
lvshared,
29162916
shared_istat,
@@ -3123,15 +3123,15 @@ lazy_cleanup_one_index(Relation indrel, IndexBulkDeleteResult *istat,
31233123
ereport(elevel,
31243124
(errmsg("index \"%s\" now contains %.0f row versions in %u pages",
31253125
RelationGetRelationName(indrel),
3126-
(istat)->num_index_tuples,
3127-
(istat)->num_pages),
3126+
istat->num_index_tuples,
3127+
istat->num_pages),
31283128
errdetail("%.0f index row versions were removed.\n"
31293129
"%u index pages were newly deleted.\n"
31303130
"%u index pages are currently deleted, of which %u are currently reusable.\n"
31313131
"%s.",
3132-
(istat)->tuples_removed,
3133-
(istat)->pages_newly_deleted,
3134-
(istat)->pages_deleted,(istat)->pages_free,
3132+
istat->tuples_removed,
3133+
istat->pages_newly_deleted,
3134+
istat->pages_deleted,istat->pages_free,
31353135
pg_rusage_show(&ru0))));
31363136
}
31373137

@@ -4069,7 +4069,7 @@ end_parallel_vacuum(LVRelState *vacrel)
40694069
if (shared_istat->updated)
40704070
{
40714071
indstats[idx]= (IndexBulkDeleteResult*)palloc0(sizeof(IndexBulkDeleteResult));
4072-
memcpy(indstats[idx],&(shared_istat->istat),sizeof(IndexBulkDeleteResult));
4072+
memcpy(indstats[idx],&shared_istat->istat,sizeof(IndexBulkDeleteResult));
40734073
}
40744074
else
40754075
indstats[idx]=NULL;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp