IMPORTANT NOTE: If the restore command is unable to find a backup that matches a specified time target then an error will be thrown, whereas before a warning was logged.

Fix restore delta link mapping when path/file already exists.

When link-map or link-all mapped a path or file that already existed to a link, a delta restore left the existing path or file in place. It is now replaced by the link.

Fix socket leak on connection retries.

In optimized builds the socket of a failed connection attempt was not closed, and each retry leaked a socket.

Add TLS server.

The server command starts a TLS server that can be used instead of SSH to reach repository and hosts. Set repo-host-type=tls or pg-host-type=tls on the client, and configure certificates and client authorization with the tls-server-* options. SIGHUP reloads the configuration and SIGTERM stops the server.

Add --cmd option.

Set cmd to the executable used in commands that writes, e.g. restore_command in recovery.conf.

Check archive immediately after backup start.

A backup failed because WAL archiving was not working only after all files were copied. The archive is now checked right after the backup starts. On an idle system a restore point is created to switch the WAL segment.

Add timeline and checkpoint checks to backup.

The backup now checks that pg_control has the checkpoint and timeline of the backup start, and that a standby is following the primary, i.e. it is on the same timeline and its checkpoint is not later than the backup checkpoint.

Check that clusters are alive and correctly configured during a backup.

A backup now fails as soon as a cluster stops or the standby is promoted. Before, a stopped primary was detected only at the end of the backup and a promoted standby was not detected.

Error when restore is unable to find a backup to match the time target.

This was a warning that was easy to miss, and a lot of time could be lost restoring a backup that cannot reach the target.

Parse protocol/port in S3/Azure endpoints.

repo-s3-endpoint, repo-azure-endpoint, and repo-storage-host may now include a protocol and port, e.g. https://host:9000.

Add warning when checkpoint_timeout exceeds db-timeout.

With start-fast=n, a backup can time out waiting for the checkpoint when checkpoint_timeout is greater than db-timeout. The backup now warns in this case.

Add verb to HTTP error output.

Allow y/n arguments for boolean command-line options.

Make backup size logging exactly match info command output.

The logged backup size now includes only the files copied, plus backup_label and tablespace_map. Before, e.g. an incremental backup after a switchover logged the size of every file checked.

Simplify error handler.

Add StringId as an option type.

Do not delete manifests individually during stanza delete.

Add error type and message to CHECK() macro.

Clean up and refactor code.

Update LICENSE.txt and PostgreSQL copyright for 2022.

Display size option default and allowed values with appropriate units.

Fix typos and improve documentation for the tablespace-map-all option.

Remove obsolete statement about future multi-repository support.

The documentation stated that only one repository was allowed, but multiple repositories have been supported since v2.33.

Update the user guide.

Update the release notes and RELEASE.md.

Improve unit and performance tests.