Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ce42efa

Browse files
committed
Use maintenance_io_concurrency for ANALYZE prefetch
When prefetching pages for ANALYZE, we should be using maintenance_io_concurrenty (by calling get_tablespace_maintenance_io_concurrency(), not get_tablespace_io_concurrency()). ANALYZE prefetching was introduced in c6fc50c, so back-patch to 14. Backpatch-through: 14 Reported-By: Egor Rogov Discussion: https://postgr.es/m/9beada99-34ce-8c95-fadb-451768d08c64%40postgrespro.ru
1 parent f017272 commit ce42efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/analyze.c

+1-1
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
#ifdef USE_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)