IMPORTANT NOTE: The log level for copied files in the backup/restore commands has been changed to detail. This makes the info log level less noisy but if these messages are required then set the log level for the backup/restore commands to detail.

Detect errors in S3 multi-part upload finalize.

Completing a multi-part upload can fail even when S3 returns HTTP success. A response without an ETag is now treated as a failure, and the job is retried.

Fix detection of circular symlinks.

Links were followed before they were checked, and a circular link sent the manifest build into endless recursion and a crash.

Only pass selected repo options to the remote.

Options for other repositories could cause conflicts on the remote, which uses exactly one repository.

Binary protocol.

Local and remote processes now communicate with the binary pack format rather than JSON. Packs are more compact, faster to render and parse, and strictly typed. Each message is written in one place, which makes an error less likely to leave the protocol in a bad state, and messages have no size limit.

Automatically create data directory on restore.

A check migrated from Perl prevented restore from creating the data directory.

Allow restore --type=lsn.

Set type=lsn and an LSN in target to recover to an LSN on >= 10.

Change level of backup/restore copied file logging to detail.

This makes the info log level less noisy. Set the log level to detail to see each copied file.

Loop while waiting for checkpoint LSN to reach replay LSN.

On a standby the checkpoint LSN can lag slightly behind the replay LSN until pg_control is updated. The backup now keeps checking rather than failing.

Log backup file total and restore size/file total.

The backup size is now logged at the end of the backup and includes files added to the manifest after the main copy, e.g. backup_label and WAL. Restore now logs its size and file total.

Add support for more Pack types.

Clear error when a CATCH() block finishes.

Migrate config and error code generation to C.

Fix miscalculation in time option command defaults.

Refactor local/remote startup.

Fix infinite loop in protocolServerProcess() on error.

Add temp mem context reset blocks in job processing loops.

Clean up code and comments.

Update config.guess and config.sub to latest versions.

Fix incorrect host names in user guide.

Some examples showed pg1 rather than the host name, and the install block installed packages on the build host no matter which host was specified.

Update contributing documentation and add pull request template.

The contributing guide now has a table of contents and sections on understanding test output and submitting a pull request. GitHub now shows a template for new pull requests.

Rearrange backup documentation in user guide.

The Fast Start Option and Archive Timeout sections moved to Quick Start - Perform Backup. The Automatic Stop Option section, which applies only to <= 9.6, was removed.

Clarify restore --type behavior in command reference.

The reference now states that set must be specified when the target is before the latest backup and type is not time.

Fix documentation and comment typos.

Add optional stress test section to the user guide.

Add linefeeds around content even when not in pretty mode.

Add check for test path inside repo path.

A test path inside the repository path caused strange failures because the repository is copied into the test path. test.pl now errors in this case.

Add CodeQL static code analysis.

CodeQL now runs in CI. Issues it found were fixed, e.g. gmtime()/localtime() were replaced with gmtime_r()/localtime_r().

Update tests to use standard patterns.

Improve test harness macros.

Improve unit tests and test tools.

CI updates.