mirror of
https://github.com/postgres/postgres.git
synced 2026-10-23 13:29:09 +03:00
Progress reporting in pg_basebackup and pg_stat_progress_basebackup used the estimated size of a full backup even when taking an incremental backup. The size estimation pass did not account for incremental files and counted every file at its full size. Progress could therefore remain at only a few percent even after the incremental backup completed successfully. Fix this by making the size estimation pass account for incremental files, counting them at the size they will occupy in the archive. Backpatch to 17, where incremental backup was introduced. Author: Daria Lepikhova <daria.n.lepikhova@gmail.com> Reviewed-by: Manuel Reyes Bravo <manuelreyesbravo@gmail.com> Reviewed-by: Zsolt Parragi <zsolt.parragi@percona.com> Reviewed-by: Surya Poondla <suryapoondla4@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/CAK49S1ASwk7L-7LYUUz1MU_+uQnZ75srva2XRR4r-w0HCVZeUQ@mail.gmail.com Backpatch-through: 17