| 1 |
/*------------------------------------------------------------------------- |
| 2 |
* |
| 3 |
* Read and manipulate backup label files |
| 4 |
* |
| 5 |
* Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group |
| 6 |
* Portions Copyright (c) 1994, Regents of the University of California |
| 7 |
* |
| 8 |
* src/bin/pg_combinebackup/backup_label.h |
| 9 |
* |
| 10 |
*------------------------------------------------------------------------- |
| 11 |
*/ |
| 12 |
#ifndef BACKUP_LABEL_H |
| 13 |
#define BACKUP_LABEL_H |
| 14 |
|
| 15 |
#include "access/xlogdefs.h" |
| 16 |
#include "common/checksum_helper.h" |
| 17 |
#include "lib/stringinfo.h" |
| 18 |
|
| 19 |
struct manifest_writer; |
| 20 |
|
| 21 |
extern void parse_backup_label(char *filename, StringInfo buf, |
| 22 |
TimeLineID *start_tli, |
| 23 |
XLogRecPtr *start_lsn, |
| 24 |
TimeLineID *previous_tli, |
| 25 |
XLogRecPtr *previous_lsn); |
| 26 |
extern void write_backup_label(char *output_directory, StringInfo buf, |
| 27 |
pg_checksum_type checksum_type, |
| 28 |
struct manifest_writer *mwriter); |
| 29 |
|
| 30 |
#endif /* BACKUP_LABEL_H */ |