Use maintenance_io_concurrency for ANALYZE prefetch

Stephen Frost <sfrost@snowman.net>

Commit: ce42efaa2696fa74dffcbaa7d25c4ef00e93e1c0
Author: Stephen Frost <sfrost@snowman.net>
Date: 2021-08-27T23:23:14Z
Releases: 15.0
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

Files

PathChange+/−
src/backend/commands/analyze.c modified +1 −1

Discussion