1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/test/lib/pgBackRestTest/Module
David Steele 2310e423e9 Fixed an issue that prevented tablespaces from being backed up on PostgreSQL ≤ 8.4.
The integration tests that were supposed to prevent this regression did not work as intended.  They verified the contents of a table in the (supposedly) restored tablespace, deleted the table, and then deleted the tablespace.  All of this was deemed sufficient to prove that the tablespace had been restored correctly and was valid.

However, PostgreSQL will happily recreate a tablespace on the basis of a single full-page write, at least in the affected versions.  Since writes to the test table were replayed from WAL with each recovery, all the tests passed even though the tablespace was missing after the restore.

The tests have been updated to include direct comparisons against the file system and a new table that is not replayed after a restore because it is created before the backup and never modified again.

Versions ≥ 9.0 were not affected due to numerous synthetic integration tests that verify backups and restores file by file.
2017-06-27 16:47:40 -04:00
..
Archive Consolidate archive-get test into new archive test. 2017-06-22 18:51:39 -04:00
Backup Storage and IO layer refactor: 2017-06-09 17:51:41 -04:00
Common Storage and IO layer refactor: 2017-06-09 17:51:41 -04:00
Config Storage and IO layer refactor: 2017-06-09 17:51:41 -04:00
Expire Rename Archive modules to remove redundancy. 2017-06-21 08:02:21 -04:00
Help Moved test and env modules to new directories to avoid namespace conflicts with common tests. 2017-05-12 16:43:04 -04:00
Info Storage and IO layer refactor: 2017-06-09 17:51:41 -04:00
Mock Consolidate archive-get test into new archive test. 2017-06-22 18:51:39 -04:00
Protocol Storage and IO layer refactor: 2017-06-09 17:51:41 -04:00
Real Fixed an issue that prevented tablespaces from being backed up on PostgreSQL ≤ 8.4. 2017-06-27 16:47:40 -04:00
Stanza Rename Archive modules to remove redundancy. 2017-06-21 08:02:21 -04:00
Storage Revert removal of Ubuntu 12.04 and PostgreSQL 8.3. 2017-06-27 15:58:02 -04:00