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

Commitce42efa

Browse files
committed
Use maintenance_io_concurrency for ANALYZE prefetch
When prefetching pages for ANALYZE, we should be usingmaintenance_io_concurrenty (by callingget_tablespace_maintenance_io_concurrency(), notget_tablespace_io_concurrency()).ANALYZE prefetching was introduced inc6fc50c, so back-patch to 14.Backpatch-through: 14Reported-By: Egor RogovDiscussion:https://postgr.es/m/9beada99-34ce-8c95-fadb-451768d08c64%40postgrespro.ru
1 parentf017272 commitce42efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/analyze.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ acquire_sample_rows(Relation onerel, int elevel,
11641164
nblocks=BlockSampler_Init(&bs,totalblocks,targrows,randseed);
11651165

11661166
#ifdefUSE_PREFETCH
1167-
prefetch_maximum=get_tablespace_io_concurrency(onerel->rd_rel->reltablespace);
1167+
prefetch_maximum=get_tablespace_maintenance_io_concurrency(onerel->rd_rel->reltablespace);
11681168
/* Create another BlockSampler, using the same seed, for prefetching */
11691169
if (prefetch_maximum)
11701170
(void)BlockSampler_Init(&prefetch_bs,totalblocks,targrows,randseed);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp