Use streaming read I/O in autoprewarm Make a read stream for each valid fork of each valid relation represented in the autoprewarm dump file and prewarm those blocks through the read stream API instead of by directly invoking ReadBuffer().
Co-authored-by: Nazir Bilal Yavuz <byavu...@gmail.com> Co-authored-by: Melanie Plageman <melanieplage...@gmail.com> Reviewed-by: Heikki Linnakangas <hlinn...@iki.fi> Reviewed-by: Daniel Gustafsson <dan...@yesql.se> Reviewed-by: Andrey M. Borodin <x4...@yandex-team.ru> (earlier versions) Reviewed-by: Kirill Reshke <reshkekir...@gmail.com> (earlier versions) Reviewed-by: Matheus Alcantara <mths....@pm.me> (earlier versions) Discussion: https://postgr.es/m/flat/CAN55FZ3n8Gd%2BhajbL%3D5UkGzu_aHGRqnn%2BxktXq2fuds%3D1AOR6Q%40mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d9c7911e1a5f354b7c34b7f53a52e0a690e7ebc9 Modified Files -------------- contrib/pg_prewarm/autoprewarm.c | 126 ++++++++++++++++++++++++++++++++------- src/tools/pgindent/typedefs.list | 1 + 2 files changed, 104 insertions(+), 23 deletions(-)