Use incremental parsing of backup manifests.
authorAndrew Dunstan
Mon, 11 Mar 2024 06:31:51 +0000 (02:31 -0400)
committerAndrew Dunstan
Thu, 4 Apr 2024 10:46:40 +0000 (06:46 -0400)
commit222e11a10ae9840929cff617c01cc6f8f695536f
tree9d4194f4e3762bdbd32d34534bfc308335db4c5e
parentea7b4e9a2a7c23c62278d9a3e0c77310778f62b2
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-f74397a02f55@dunslane.net
src/backend/backup/basebackup_incremental.c
src/bin/pg_combinebackup/load_manifest.c
src/bin/pg_verifybackup/pg_verifybackup.c