Add support for incrementally parsing backup manifests
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 11 Mar 2024 03:12:19 +0000 (23:12 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 4 Apr 2024 10:46:40 +0000 (06:46 -0400)
commitea7b4e9a2a7c23c62278d9a3e0c77310778f62b2
tree4a56a27867b27f8566cc11e96f59380822fa7860
parent3311ea86edc7a689614bad754e17371865cdc11f
Add support for incrementally parsing backup manifests

This adds the infrastructure for using the new non-recursive JSON parser
in processing manifests. It's important that callers make sure that the
last piece of json handed to the incremental manifest parser contains
the entire last few lines of the manifest, including the checksum.

Author: Andrew Dunstan
Reviewed-By: Jacob Champion
Discussion: https://postgr.es/m/7b0a51d6-0d9d-7366-3a1a-f74397a02f55@dunslane.net
src/common/parse_manifest.c
src/include/common/parse_manifest.h