Fix error thrown from FINALLY() causing an infinite loop.

An error thrown in a FINALLY() block returned to the same block, where the error was likely thrown again and caused an infinite loop. FINALLY() now runs only once.

Error on all lock failures except another process holding the lock.

archive-get/archive-push did not error when the lock could not be taken for another reason, e.g. permissions, and the async process was not launched. The user got a generic failure message and there was no async log. These failures are now errors.

Backup file bundling for improved small file support.

Bundling stores small files together in the repository to save time and space during backup, especially on object stores where creating each file is expensive. Enable it with repo-bundle and tune it with repo-bundle-size and repo-bundle-limit. Restore reads adjacent files in a bundle with a single read.

Verify command to validate the contents of a repository.

The verify command checks that the backups and WAL in the repository are valid. Set output=text to print the results and verbose to include what was verified successfully along with errors.

15 support.

15 removes exclusive backup, renames the backup start/stop functions, and drops pg_database.datlastsysoid, which no longer uses.

Show backup percent complete in info output.

info shows the percent complete of a running backup on the host where the backup is running. JSON output reports it as an integer, the percent times 100.

Auto-select backup for restore command --type=lsn.

With type=lsn, restore now selects the most recent backup that stopped at or before the target LSN.

Suppress existing WAL warning when archive-mode-check is disabled.

With archive-mode-check=n and WAL pushed from multiple hosts, a WAL file already in the archive with the same checksum is expected and no longer logs a warning. A different checksum is still an error.

Add AWS IMDSv2 support.

IMDSv2 protects the instance metadata that provides credentials for repo-s3-key-type=auto. falls back to IMDSv1 when the IMDSv2 token request fails.

Allow repo-hardlink option to be changed after full backup.

Changing repo-hardlink required a new full backup. It can now be changed at any time, e.g. to disable it for file bundling.

Increase precision of percent complete logging for backup and restore.

Percent complete is now logged with hundredths, which gives more frequent updates for large backups and restores.

Improve path validation for repo-* commands.

A path may not contain //, a trailing / is removed, and an absolute path must be in the repository path.

Improve stop command to honor stanza option.

stop with force and stanza now terminates only the processes holding locks for that stanza. Before, it terminated processes for all stanzas.

Improve error message for invalid repo-azure-key.

With repo-azure-key-type=shared, repo-azure-key is now checked for valid base64.

Add hint to check the log on archive-get/archive-push async error.

When the async process cannot write its status files, archive-get/archive-push times out with a generic error. The error now includes a hint with the path of the async log, which contains the actual error.

Add ClockError for unexpected clock skew and timezone changes.

Strip extensions from history manifest before showing in error message.

When a new backup label was not later than the latest label from the backup history, the error showed the history manifest name, e.g. 20220504-222042F_20220504-222141I.manifest.gz. It now shows only the label.

Add user:group to lock permission error.

Add hint when unable to find the primary cluster.

The unable to find primary cluster error now includes a hint asking whether all available clusters are in recovery.

Improve JSON handling.

Add default for boolean options with unresolved dependencies.

Lock module refactoring.

Prevent memContextFree() from freeing memory needed by callbacks.

Refactor PgClient to return results in Pack format.

Fix undefined behavior found by sanitizers.

Fix memory leaks and improve memory context usage.

Add and improve macros.

Add and improve string functions.

Refactor remote storage protocol to use Packs instead of JSON.

Fix reported error line number when ini key length is zero.

Clean up code and comments.

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

Fix incorrect reference to stanza-update in the user guide.

Fix example for repo-gcs-key-type option in configuration reference.

The example was none, which is not a valid value. It is now auto.

Fix tls-server-auth example and add clarifications.

The example was missing the client CN and is now client-cn=stanza1. The help also states that wildcards are not allowed for the client CN.

Simplify messaging around supported versions in the documentation.

The user guides listed version ranges, which made it look like other versions were not supported, e.g. 12 on RHEL. The ranges were removed and the introduction now explains which versions the user guides cover.

Add option type descriptions.

The configuration reference now describes each option type, e.g. the units for size options, rather than repeating the description for each option.

Add FAQ about backup types and restore speed.

A new FAQ explains that the backup type affects only the backup and not how fast a restore runs.

Document required base branch for pull requests.

The contributing guide now states that pull requests must be based on the integration branch.

Fix typos and formatting in the documentation and help.

Remove integration expect log testing.

Improve unit tests and test tools.

CI updates.