## 2.00 2018-02-23

Performance Improvements for Archive Push

The archive-push command is now partially coded in C which allows the archive_command to run significantly faster when processing status messages from the asynchronous archive process.

Improve check command to verify that the backup manifest can be built.

Improve performance of HTTPS client. Buffering now takes the `pending` bytes on the socket into account (when present) rather than relying entirely on `select()`. In some instances the final bytes would not be flushed until the connection was closed.

Improve S3 delete performance. The constant S3_BATCH_MAX had been replaced with a hard-coded value of 2, probably during testing.

Allow any non-command-line option to be reset to default on the command-line. This allows options in pgbackrest.conf to be reset to default which reduces the need to write new configuration files for specific needs.

The C library is now required. This eliminates conditional loading and eases development of new library features.

The {[project-exe]} executable is now a C binary instead of Perl. This allows certain time-critical commands (like async archive-push) to run more quickly.

Rename db-* options to pg-* and backup-* options to repo-* to improve consistency. repo-* options are now indexed although currently only one is allowed.

Implement help command in C.

Implement version command in C.

Config parsing implemented in C and passed to Perl as JSON.

Add `Buffer`, `Ini`, `KeyValue`, `List`, `RegExp`, `Storage`, `String`, `StringList`, `Variant`, `VariantList`, and `Wait` objects.

Add `command`, `exit`, `log`, and `time` modules.

Remove deprecated archive-max-mb option.

Improve `MemContext` module. Add temporary context blocks and refactor allocation arrays to include allocation size.

Improve `error` module. Add functions to convert error codes to C errors and handle system errors.

Create a master list of errors in build/error.yaml. The C and Perl errors lists are created automatically by `Build.pm` so they stay up to date.

Move lock release later in exitSafe() to reduce the chance of a new process starting and acquiring a lock before the old process has exited.

Add 30 second wait loop to lockAcquire() when fail on no lock enabled. This should help prevent processes that are shutting down from interfering with processes that are starting up.

Replace `cfgCommandTotal()`/`cfgOptionTotal()` functions with constants. The constants are applicable in more cases and allow the compiler to optimize certain loops more efficiently.

Cleanup usage of internal options. Apply internal to options that need to be read to determine locality but should not appear in the help.

Refactor code to make valgrind happy.

Fix non-compliant formatting for function declarations.

All clusters in the documentation are initialized with checksums.

List deprecated option names in documentation and command-line help.

Clarify that S3 buckets must be created by the user.

Add coding standards document.

Improve section source feature to not require a title or content. The title will be pulled from the source document.

Allow code blocks to have a type. Currently this is only rendered in Markdown.

Add table render for Markdown format.

PDF rendering improvements. Check both doc-path and bin-path for logo. Allow PDF to be output to a location other than the output directory. Use PDF-specific version variable for more flexible formatting. Allow sections to be excluded from table of contents. More flexible replacements for titles and footers. Fill is now the default for table columns. Column width is specified as a percentage rather that using latex-specific notation. Fix missing variable replace for `code-block` title.

Add id param for hosts created with `host-add`. The host-*-ip variable is created from the id param so the name param can be changed without affecting the host-*-ip variable. If id is not specified then it is copied from name.

Deploy historical documentation to prior rather than the root directory.

Run valgrind on all C unit tests.

Only build C binary/library for Perl unit/integration tests or C unit tests that require Perl.

Improve speed of C unit tests. Preserve object files between tests and use a Makefile to avoid rebuilding object files.

Report coverage errors via the console. This helps with debugging coverage issues on remote services like Travis.

No longer run master branch through CI. The integration branch will be run through CI and then pushed to master with github status checks.

Rename Perl tests so they don't conflict with their C counterparts.

Update URL for Debian package repository.