1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test/expect
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
..
mock-all-001.log Support configurable WAL segment size. 2018-09-25 10:24:42 +01:00
mock-all-002.log Support configurable WAL segment size. 2018-09-25 10:24:42 +01:00
mock-all-003.log Support configurable WAL segment size. 2018-09-25 10:24:42 +01:00
mock-archive-001.log Support configurable WAL segment size. 2018-09-25 10:24:42 +01:00
mock-archive-002.log Allow hashSize() to run on remote storage. 2018-09-18 11:39:48 -04:00
mock-archive-003.log Move encryption in mock/archive tests to remote tests. 2018-09-06 09:35:34 -07:00
mock-archive-stop-001.log Add log-subprocess option to allow file logging for local and remote subprocesses. 2018-08-22 20:05:49 -04:00
mock-archive-stop-002.log Add log-subprocess option to allow file logging for local and remote subprocesses. 2018-08-22 20:05:49 -04:00
mock-archive-stop-003.log Add log-subprocess option to allow file logging for local and remote subprocesses. 2018-08-22 20:05:49 -04:00
mock-archive-stop-004.log Add log-subprocess option to allow file logging for local and remote subprocesses. 2018-08-22 20:05:49 -04:00
mock-archive-stop-005.log Add log-subprocess option to allow file logging for local and remote subprocesses. 2018-08-22 20:05:49 -04:00
mock-archive-stop-006.log Add log-subprocess option to allow file logging for local and remote subprocesses. 2018-08-22 20:05:49 -04:00
mock-archive-stop-007.log Add log-subprocess option to allow file logging for local and remote subprocesses. 2018-08-22 20:05:49 -04:00
mock-expire-001.log Add log-subprocess option to allow file logging for local and remote subprocesses. 2018-08-22 20:05:49 -04:00
mock-expire-002.log Add log-subprocess option to allow file logging for local and remote subprocesses. 2018-08-22 20:05:49 -04:00
mock-stanza-001.log Support configurable WAL segment size. 2018-09-25 10:24:42 +01:00
mock-stanza-002.log Support configurable WAL segment size. 2018-09-25 10:24:42 +01:00
mock-stanza-003.log Support configurable WAL segment size. 2018-09-25 10:24:42 +01:00
real-all-001.log Add checksum delta for incremental backups. 2018-09-19 11:12:45 -04:00
real-all-002.log Add checksum delta for incremental backups. 2018-09-19 11:12:45 -04:00
real-all-003.log Add checksum delta for incremental backups. 2018-09-19 11:12:45 -04:00
real-all-004.log Add checksum delta for incremental backups. 2018-09-19 11:12:45 -04:00
real-all-005.log Add checksum delta for incremental backups. 2018-09-19 11:12:45 -04:00
real-all-006.log Add checksum delta for incremental backups. 2018-09-19 11:12:45 -04:00