Use incremental parsing of backup manifests. This changes the three callers to json_parse_manifest() to use json_parse_manifest_incremental_chunk() if appropriate. In the case of the backend caller, since we don't know the size of the manifest in advance we always call the incremental parser.
Author: Andrew Dunstan Reviewed-By: Jacob Champion Discussion: https://postgr.es/m/7b0a51d6-0d9d-7366-3a1a-f74397a02...@dunslane.net Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/222e11a10ae9840929cff617c01cc6f8f695536f Modified Files -------------- src/backend/backup/basebackup_incremental.c | 58 +++++++++++++----- src/bin/pg_combinebackup/load_manifest.c | 92 ++++++++++++++++++++++------- src/bin/pg_verifybackup/pg_verifybackup.c | 90 ++++++++++++++++++++-------- 3 files changed, 178 insertions(+), 62 deletions(-)