14#ifndef PG_VERIFYBACKUP_H
15#define PG_VERIFYBACKUP_H
40#define should_verify_checksum(m) \
41 (((m)->matched) && !((m)->bad) && (((m)->checksum_type) != CHECKSUM_TYPE_NONE))
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
79 manifest_files_hash *
files;
99 const char *pg_restrict
fmt,...)
#define pg_attribute_printf(f, a)
static void const char * fmt
struct verifier_context verifier_context
bool should_ignore_relpath(verifier_context *context, const char *relpath)
struct manifest_wal_range manifest_wal_range
void void report_fatal_error(const char *pg_restrict fmt,...) pg_attribute_printf(1
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
void void pg_attribute_noreturn()
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