PostgreSQL Source Code: src/bin/pg_verifybackup/pg_verifybackup.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14#ifndef PG_VERIFYBACKUP_H

15#define PG_VERIFYBACKUP_H

16

23

24

25

26

27

29{

39

40#define should_verify_checksum(m) \

41 (((m)->matched) && !((m)->bad) && (((m)->checksum_type) != CHECKSUM_TYPE_NONE))

42

43

44

45

46

47#define SH_PREFIX manifest_files

48#define SH_ELEMENT_TYPE manifest_file

49#define SH_KEY_TYPE const char *

50#define SH_KEY pathname

51#define SH_HASH_KEY(tb, key) hash_string(key)

52#define SH_EQUAL(tb, a, b) (strcmp(a, b) == 0)

53#define SH_SCOPE static inline

54#define SH_RAW_ALLOCATOR pg_malloc0

55#define SH_DECLARE

56#define SH_DEFINE

58

59

60

61

62

64{

71

72

73

74

76{

79 manifest_files_hash *files;

83

84

85

86

88{

92 char format;

97

99 const char *pg_restrict fmt,...)

105

108 char *archive_name,

109 Oid tblspc_oid);

110

111#endif

#define pg_attribute_printf(f, a)

struct verifier_context verifier_context

void pg_noreturn void report_fatal_error(const char *pg_restrict fmt,...) pg_attribute_printf(1

struct manifest_wal_range manifest_wal_range

void pg_noreturn void bool should_ignore_relpath(verifier_context *context, const char *relpath)

astreamer * astreamer_verify_content_new(astreamer *next, verifier_context *context, char *archive_name, Oid tblspc_oid)

struct manifest_file manifest_file

void report_backup_error(verifier_context *context, const char *pg_restrict fmt,...) pg_attribute_printf(2

struct manifest_data manifest_data

#define relpath(rlocator, forknum)

manifest_wal_range * last_wal_range

manifest_wal_range * first_wal_range

manifest_files_hash * files

pg_checksum_type checksum_type

struct manifest_wal_range * next

struct manifest_wal_range * prev

SimpleStringList ignore_list