Skip to content

Commit 9efa998

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 8f6c110 commit 9efa998

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
#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy