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
PostgreSQL Database Management System
This directory contains the source code distribution of the PostgreSQL database management system.
PostgreSQL is an advanced object-relational database management system that supports an extended subset of the SQL standard, including transactions, foreign keys, subqueries, triggers, user-defined types and functions. This distribution also contains C language bindings.
Copyright and license information can be found in the file COPYRIGHT.
General documentation about this version of PostgreSQL can be found at https://www.postgresql.org/docs/19/. In particular, information about building PostgreSQL from the source code can be found at https://www.postgresql.org/docs/19/installation.html.
The latest version of this software, and related software, may be obtained at https://www.postgresql.org/download/. For more information look at our web site located at https://www.postgresql.org/.