NOTE TO PACKAGERS: The zstd library is now required by the meson build and the libzstd build option has been removed.

Fix page checksum validation for non-default relation segment sizes.

can be built with a relation segment size other than 1GB, e.g. --with-segsize=2. Page checksums were validated for a 1GB segment so pages in every segment after the first were reported as invalid and corruption past the first 1GB of a larger segment was not reported. The segment size is now read from pg_control.

Backups of these clusters taken with earlier versions may contain false page checksum errors, which cause the restore command to fail and the expire command to refuse to expire. Set checksum-page-error=n for these backups. Differential and incremental backups keep the errors for unchanged files until the next full backup.

Fix io-timeout for SFTP storage while server keepalives are arriving.

Each wait for the server restarted the timeout and any packet from the server ended the wait. When the server stopped responding but still sent keepalives more often than io-timeout an operation such as a file write or remove could wait indefinitely. The timeout now limits how long an operation can wait without making progress. A directory read that timed out or failed ended the list without an error and now reports the error.

Repository encryption key rotation.

Add tls-min-version option.

Set tls-min-version=1.3 to allow only TLS 1.3, e.g. for compliance. The default is 1.2. A higher minimum set in the OpenSSL config is not lowered. The option is ignored for repository storage connections when repo-storage-verify-tls=n.

Direct I/O for Posix/CIFS storage.

Set repo-io-mode=direct or pg-io-mode=direct to read and write files with direct I/O (O_DIRECT), which bypasses the page cache. Direct I/O does not fill the page cache but disables readahead and background writeback and can reduce throughput. repo-io-mode is valid when repo-type is posix or cifs. Buffered I/O is used when the file system does not support direct I/O.

Remove support for PostgreSQL 9.6.

Check the version before restore modifies the data directory.

A restore of a backup from an unsupported version, e.g. 9.6, failed after the data directory had been modified. With --delta pg_control and files not in the backup had already been removed. The version is now checked before the data directory is modified.

Improve errors for an info file or manifest that cannot be loaded.

A file decrypted with the wrong repo-cipher-pass was reported with the random bytes it decrypted to, once for the file and again for its copy. A line that is not text is now shown as <binary data> and an error that repeats for the copy is reported once.

Reconnect SFTP storage after an open times out.

An SFTP server can stop responding on a session while the connection stays up. An open on that session failed with libssh2 error [-9] or libssh2 error [-37] and each retry used the same session and failed the same way. The session is now reopened and the open is retried once.

Reconnect SFTP storage after a failed send during open.

An SFTP server with ClientAliveInterval set drops a session that does not respond to keepalives, e.g. the session of the main process during the copy phase of a backup. The next open on that session failed with libssh2 error [-7]. The session is now reopened and the open is retried once.

Improve performance of block incremental delta restore.

Each changed block was written and followed by a seek even when the next changed block was contiguous, which defeated the seek optimization added in v2.59.0. Contiguous blocks are now written without a seek in between.

Require the zstd library.

compress-type=zst was not available when was built without zstd. zstd is now required by the build so compress-type=zst is available in every build.

Add a security policy.

SECURITY.md describes how to report vulnerabilities privately using GitHub private vulnerability reporting or security@pgbackrest.org. The OpenSSF Security Insights file describes the project administrators, the release process, and the security tools run in CI and before release.

Prevent the SFTP unit test from modifying ~/.ssh/known_hosts.

The test created and removed ~/.ssh/known_hosts so running it outside a container deleted the file of the current user. The test now uses a home directory in the test path.