pg_verifybackup: Refactor parse_manifest_file.
authorRobert Haas
Mon, 4 Mar 2024 19:42:17 +0000 (14:42 -0500)
committerRobert Haas
Mon, 4 Mar 2024 19:42:17 +0000 (14:42 -0500)
commitdc8f2d7c064ac2ba76e5821fd96fa3837076f0d2
treea3b63540fb4da1d583d7c23445e5f5c67ac81f08
parentdd7ea37c435e10f9c5aa3fb257a05c08814a4ad2
pg_verifybackup: Refactor parse_manifest_file.

Return a pointer to the manifest_data instead of individual pointers
to relevant data stored within the manifest_data object. The previous
approach scales poorly if we add more things to the backup manifest,
as has been proposed.

Amul Sul, reviewed by Sravan Velagandula, Michael Paquier, and me.

Discussion: http://postgr.es/m/CAAJ_b95=1LONf99-M_ep588fL_WgLJfdnb7XG4GWE7JDD22E4w@mail.gmail.com
src/bin/pg_verifybackup/pg_verifybackup.c