PostgreSQL Source Code  git master
backup_label.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * Read and manipulate backup label files
4  *
5  * Portions Copyright (c) 1996-2024, 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 */
void write_backup_label(char *output_directory, StringInfo buf, pg_checksum_type checksum_type, struct manifest_writer *mwriter)
Definition: backup_label.c:127
void parse_backup_label(char *filename, StringInfo buf, TimeLineID *start_tli, XLogRecPtr *start_lsn, TimeLineID *previous_tli, XLogRecPtr *previous_lsn)
Definition: backup_label.c:45
pg_checksum_type
static char * filename
Definition: pg_dumpall.c:119
static char * buf
Definition: pg_test_fsync.c:73
uint64 XLogRecPtr
Definition: xlogdefs.h:21
uint32 TimeLineID
Definition: xlogdefs.h:59