1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00
pgbackrest/lib/pgBackRest
David Steele d038b9a029 Support configurable WAL segment size.
PostgreSQL 11 introduces configurable WAL segment sizes, from 1MB to 1GB.

There are two areas that needed to be updated to support this: building the archive-get queue and checking that WAL has been archived after a backup.  Both operations require the WAL segment size to properly build a list.

Checking the archive after a backup is still implemented in Perl and has an active database connection, so just get the WAL segment size from the database.

The archive-get command does not have a connection to the database, so get the WAL segment size from pg_control instead.  This requires a deeper inspection of pg_control than has been done in the past, so it seemed best to copy the relevant data structures from each version of PostgreSQL and build a generic interface layer to address them.  While this approach is a bit verbose, it has the advantage of being relatively simple, and can easily be updated for new versions of PostgreSQL.

Since the integration tests generate pg_control files for testing, teach Perl how to generate files with the correct offsets for both 32-bit and 64-bit architectures.
2018-09-25 10:24:42 +01:00
..
Archive Support configurable WAL segment size. 2018-09-25 10:24:42 +01:00
Backup Support configurable WAL segment size. 2018-09-25 10:24:42 +01:00
Check Add checksum delta for incremental backups. 2018-09-19 11:12:45 -04:00
Common Improve support for special characters in filenames. 2018-09-10 10:54:34 -04:00
Config Move async forking and more error handling to C. 2018-04-12 20:42:26 -04:00
Protocol Allow hashSize() to run on remote storage. 2018-09-18 11:39:48 -04:00
Storage Allow hashSize() to run on remote storage. 2018-09-18 11:39:48 -04:00
Db.pm Support configurable WAL segment size. 2018-09-25 10:24:42 +01:00
DbVersion.pm PostgreSQL 11 Beta 1 support. 2018-06-05 08:59:17 -04:00
Expire.pm Rename retention-* options to repo-retention-*. 2018-02-19 15:07:24 -05:00
Info.pm Improve info command to display the stanza cipher type. 2018-09-10 13:09:45 -04:00
InfoCommon.pm Added stanza-upgrade command. 2017-04-03 10:42:55 -04:00
LibC.pm Allow command/option constants to autonumber in both C and Perl to reduce churn when a new command/option is added. 2018-08-24 19:31:45 -04:00
LibCAuto.pm Allow arbitrary directories and/or files to be excluded from a backup. 2018-08-27 15:51:05 -04:00
Main.pm Improve log file names for remote processes started by locals. 2018-08-31 11:31:13 -04:00
Manifest.pm Add checksum delta for incremental backups. 2018-09-19 11:12:45 -04:00
Restore.pm Improve support for special characters in filenames. 2018-09-10 10:54:34 -04:00
RestoreFile.pm Fix delta restore failing when a linked file was missing. 2018-05-02 12:06:12 -04:00
Stanza.pm Remove incompletely implemented online option from the check command. 2018-08-12 19:24:21 -04:00
Version.pm Begin v2.06 development. 2018-08-31 14:24:36 -04:00