Remove dependency to StringInfo in xlogbackup.{c.h}
Michael Paquier <michael@paquier.xyz>
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: https://postgr.es/m/YzERvNPaZivHEKZJ@paquier.xyz
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/xlogbackup.c | modified | +7 −3 |
| src/backend/access/transam/xlog.c | modified | +2 −3 |
| src/backend/access/transam/xlogfuncs.c | modified | +2 −3 |
| src/backend/backup/basebackup.c | modified | +2 −3 |
| src/include/access/xlogbackup.h | modified | +2 −3 |
Discussion
- Is it correct to say, "invalid data in file \"%s\"", BACKUP_LABEL_FILE in do_pg_backup_stop? 45 messages · 2022-07-20 → 2022-09-28