Remove dependency to StringInfo in xlogbackup.{c.h}
authorMichael Paquier <michael@paquier.xyz>
Tue, 27 Sep 2022 00:15:07 +0000 (09:15 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 27 Sep 2022 00:15:07 +0000 (09:15 +0900)
commite1e6f8f3dfe141839220875270a81ad3a719e0b6
treed3bed4b143fa09b7499bf5e1eb3fa150b7ceca00
parent31d2c4716e6b429353bb81cebaa0f2b1267823d6
Remove dependency to StringInfo in xlogbackup.{c.h}

This was used as the returned result type of the generated contents for
the backup_label and backup history files.  This is replaced by a simple
string, reducing the cleanup burden of all the callers of
build_backup_content().

Reviewed-by: Bharath Rupireddy
Discussion: http://postgr.es/m/YzERvNPaZivHEKZJ@paquier.xyz
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogbackup.c
src/backend/access/transam/xlogfuncs.c
src/backend/backup/basebackup.c
src/include/access/xlogbackup.h