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-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 */
write_backup_label
void write_backup_label(char *output_directory, StringInfo buf, pg_checksum_type checksum_type, struct manifest_writer *mwriter)
Definition:
backup_label.c:127
parse_backup_label
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
checksum_helper.h
pg_checksum_type
pg_checksum_type
Definition:
checksum_helper.h:30
filename
static char * filename
Definition:
pg_dumpall.c:119
buf
static char * buf
Definition:
pg_test_fsync.c:72
stringinfo.h
StringInfoData
Definition:
stringinfo.h:47
manifest_writer
Definition:
write_manifest.c:28
xlogdefs.h
XLogRecPtr
uint64 XLogRecPtr
Definition:
xlogdefs.h:21
TimeLineID
uint32 TimeLineID
Definition:
xlogdefs.h:59
src
bin
pg_combinebackup
backup_label.h
Generated on Wed Feb 19 2025 12:13:22 for PostgreSQL Source Code by
1.9.4