PostgreSQL Source Code  git master
backup_manifest.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * backup_manifest.h
4  * Routines for generating a backup manifest.
5  *
6  * Portions Copyright (c) 2010-2021, PostgreSQL Global Development Group
7  *
8  * src/include/replication/backup_manifest.h
9  *
10  *-------------------------------------------------------------------------
11  */
12 #ifndef BACKUP_MANIFEST_H
13 #define BACKUP_MANIFEST_H
14 
15 #include "access/xlogdefs.h"
16 #include "common/checksum_helper.h"
17 #include "pgtime.h"
18 #include "storage/buffile.h"
19 
20 typedef enum manifest_option
21 {
26 
27 typedef struct backup_manifest_info
28 {
32  uint64 manifest_size;
34  bool first_file;
37 
39  backup_manifest_option want_manifest,
40  pg_checksum_type manifest_checksum_type);
42  const char *spcoid,
43  const char *pathname, size_t size,
44  pg_time_t mtime,
45  pg_checksum_context *checksum_ctx);
48  TimeLineID starttli, XLogRecPtr endptr,
49  TimeLineID endtli);
52 
53 #endif
void InitializeBackupManifest(backup_manifest_info *manifest, backup_manifest_option want_manifest, pg_checksum_type manifest_checksum_type)
struct backup_manifest_info backup_manifest_info
void AddFileToBackupManifest(backup_manifest_info *manifest, const char *spcoid, const char *pathname, size_t size, pg_time_t mtime, pg_checksum_context *checksum_ctx)
void SendBackupManifest(backup_manifest_info *manifest)
uint32 TimeLineID
Definition: xlogdefs.h:59
int64 pg_time_t
Definition: pgtime.h:23
manifest_option
enum manifest_option backup_manifest_option
pg_checksum_type
void FreeBackupManifest(backup_manifest_info *manifest)
pg_checksum_type checksum_type
void AddWALInfoToBackupManifest(backup_manifest_info *manifest, XLogRecPtr startptr, TimeLineID starttli, XLogRecPtr endptr, TimeLineID endtli)
uint64 XLogRecPtr
Definition: xlogdefs.h:21
static bool manifest
pg_cryptohash_ctx * manifest_ctx
static XLogRecPtr startptr
Definition: basebackup.c:116