pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: pg_basebackup: Report correct size estimate for incremental back 4+ messages / 1 participants [nested] [flat]
* pgsql: pg_basebackup: Report correct size estimate for incremental back @ 2026-10-14 10:57 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Fujii Masao @ 2026-10-14 10:57 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org pg_basebackup: Report correct size estimate for incremental backups 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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/cedd2cec7d537ccae01ab5041cdcaf15aa8618e0 Modified Files -------------- doc/src/sgml/protocol.sgml | 9 ++- src/backend/backup/basebackup.c | 7 +- src/backend/backup/basebackup_incremental.c | 4 + src/bin/pg_basebackup/meson.build | 1 + .../pg_basebackup/t/012_incremental_progress.pl | 85 ++++++++++++++++++++++ 5 files changed, 102 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: pg_basebackup: Report correct size estimate for incremental back @ 2026-10-14 10:57 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Fujii Masao @ 2026-10-14 10:57 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org pg_basebackup: Report correct size estimate for incremental backups 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 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/97fa9bdc5aacec354b45f7f0f12269b931a5f511 Modified Files -------------- doc/src/sgml/protocol.sgml | 9 ++- src/backend/backup/basebackup.c | 7 +- src/backend/backup/basebackup_incremental.c | 4 + src/bin/pg_basebackup/meson.build | 1 + .../pg_basebackup/t/012_incremental_progress.pl | 85 ++++++++++++++++++++++ 5 files changed, 102 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: pg_basebackup: Report correct size estimate for incremental back @ 2026-10-14 10:57 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Fujii Masao @ 2026-10-14 10:57 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org pg_basebackup: Report correct size estimate for incremental backups 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 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/f47c63d7a453d7607ceabe74856c2d60669bfe7a Modified Files -------------- doc/src/sgml/protocol.sgml | 9 ++- src/backend/backup/basebackup.c | 7 +- src/backend/backup/basebackup_incremental.c | 4 + src/bin/pg_basebackup/meson.build | 1 + .../pg_basebackup/t/012_incremental_progress.pl | 85 ++++++++++++++++++++++ 5 files changed, 102 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: pg_basebackup: Report correct size estimate for incremental back @ 2026-10-14 10:58 Fujii Masao <fujii@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Fujii Masao @ 2026-10-14 10:58 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org pg_basebackup: Report correct size estimate for incremental backups 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 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/4c674b952a61c07d26c33d5f9c8aed8c1c1696fa Modified Files -------------- doc/src/sgml/protocol.sgml | 9 ++- src/backend/backup/basebackup.c | 7 +- src/backend/backup/basebackup_incremental.c | 4 + src/bin/pg_basebackup/meson.build | 1 + .../pg_basebackup/t/012_incremental_progress.pl | 85 ++++++++++++++++++++++ 5 files changed, 102 insertions(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2026-10-14 10:58 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-10-14 10:57 pgsql: pg_basebackup: Report correct size estimate for incremental back Fujii Masao <fujii@postgresql.org> 2026-10-14 10:57 pgsql: pg_basebackup: Report correct size estimate for incremental back Fujii Masao <fujii@postgresql.org> 2026-10-14 10:57 pgsql: pg_basebackup: Report correct size estimate for incremental back Fujii Masao <fujii@postgresql.org> 2026-10-14 10:58 pgsql: pg_basebackup: Report correct size estimate for incremental back Fujii Masao <fujii@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox