1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test/lib/pgBackRestTest/Env/Host
David Steele 286f7e5011 Fix static WAL segment size used to determine if archive-push-queue-max has been exceeded.
This calculation was missed when the WAL segment size was made dynamic in preparation for PostgreSQL 11.

Fix the calculation by checking the actual WAL file sizes instead of using an estimate based on WAL segment size.  This is more accurate because it takes into account .history and .backup files, which are smaller.  Since the calculation is done in the async process the additional processing time should not adversely affect performance.

Remove the PG_WAL_SIZE constant and instead use local constants where the old value is still required.  This is only the case for some tests and PostgreSQL 8.3 which does not provide a way to get the WAL segment size from pg_control.
2018-10-27 20:00:00 +01:00
..
HostBackupTest.pm Add checksum delta for incremental backups. 2018-09-19 11:12:45 -04:00
HostBaseTest.pm The pgbackrest executable is now a C binary instead of Perl. 2017-11-26 18:43:51 -05:00
HostDbCommonTest.pm Fix static WAL segment size used to determine if archive-push-queue-max has been exceeded. 2018-10-27 20:00:00 +01:00
HostDbSyntheticTest.pm Repository encryption support. 2017-11-06 12:51:12 -05:00
HostDbTest.pm Support configurable WAL segment size. 2018-09-25 10:24:42 +01:00
HostS3Test.pm S3 repository support. 2017-06-12 10:52:32 -04:00