1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00
pgbackrest/test
David Steele 1730ef4ac3
Add noTruncate flag to storageNewWriteP().
This flag skips truncation when opening a file for write on drivers that support it, currently Posix and CIFS. This is convenient for cases where the file needs to be manipulated directly using the file descriptor. Using the file descriptor is not ideal and additional functionality should be added to the storage interface, but for now at least this avoids code duplication, especially on close which updates owners, the timestamp, syncs, etc.

The remote driver forbids no truncate because a file descriptor is never available for a remote storage write object.

Update two instances in the current code which benefit from this new functionality, but the primary reason for the change is to support more complex restore deltas in the upcoming block incremental feature.
2022-10-18 11:33:19 +13:00
..
certificate Add TLS Server. 2021-10-18 14:32:41 -04:00
code-count v2.41: Backup Annotations 2022-09-19 10:08:10 -07:00
data Automate generation of WAL and pg_control test files. 2017-11-18 20:02:54 -05:00
lib/pgBackRestTest Finalize catalog number for PostgreSQL 15 release. 2022-10-16 09:58:35 +13:00
src Add noTruncate flag to storageNewWriteP(). 2022-10-18 11:33:19 +13:00
.gitignore Move coverage results to test/result. 2020-03-14 15:29:42 -04:00
ci.pl Add experimental Meson build. 2022-06-03 14:13:56 -04:00
container.yaml Finalize catalog number for PostgreSQL 15 release. 2022-10-16 09:58:35 +13:00
define.yaml Swap command/backup and command/restore unit tests. 2022-10-14 12:08:40 +13:00
Dockerfile Test Dockerfile improvements. 2022-07-21 19:27:58 -04:00
test.pl Integrate C test harness with Perl test harness. 2022-07-27 10:32:32 -04:00
Vagrantfile Update CI to use Ubuntu 22.04 and Fedora 36. 2022-06-06 16:32:20 -04:00