PostgreSQL Source Code
git master
|
#include "common/controldata_utils.h"
#include "common/hashfn_unstable.h"
#include "common/logging.h"
#include "common/parse_manifest.h"
#include "fe_utils/astreamer.h"
#include "fe_utils/simple_list.h"
#include "lib/simplehash.h"
Go to the source code of this file.
Data Structures | |
struct | manifest_file |
struct | manifest_wal_range |
struct | manifest_data |
struct | verifier_context |
Macros | |
#define | should_verify_checksum(m) (((m)->matched) && !((m)->bad) && (((m)->checksum_type) != CHECKSUM_TYPE_NONE)) |
#define | SH_PREFIX manifest_files |
#define | SH_ELEMENT_TYPE manifest_file |
#define | SH_KEY_TYPE const char * |
#define | SH_KEY pathname |
#define | SH_HASH_KEY(tb, key) hash_string(key) |
#define | SH_EQUAL(tb, a, b) (strcmp(a, b) == 0) |
#define | SH_SCOPE static inline |
#define | SH_RAW_ALLOCATOR pg_malloc0 |
#define | SH_DECLARE |
#define | SH_DEFINE |
Typedefs | |
typedef struct manifest_file | manifest_file |
typedef struct manifest_wal_range | manifest_wal_range |
typedef struct manifest_data | manifest_data |
typedef struct verifier_context | verifier_context |
Functions | |
void | report_backup_error (verifier_context *context, const char *pg_restrict fmt,...) pg_attribute_printf(2 |
void void | report_fatal_error (const char *pg_restrict fmt,...) pg_attribute_printf(1 |
void void | pg_attribute_noreturn () |
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) |
#define SH_DECLARE |
Definition at line 55 of file pg_verifybackup.h.
#define SH_DEFINE |
Definition at line 56 of file pg_verifybackup.h.
#define SH_ELEMENT_TYPE manifest_file |
Definition at line 48 of file pg_verifybackup.h.
#define SH_HASH_KEY | ( | tb, | |
key | |||
) | hash_string(key) |
Definition at line 51 of file pg_verifybackup.h.
#define SH_KEY pathname |
Definition at line 50 of file pg_verifybackup.h.
#define SH_KEY_TYPE const char * |
Definition at line 49 of file pg_verifybackup.h.
#define SH_PREFIX manifest_files |
Definition at line 47 of file pg_verifybackup.h.
#define SH_RAW_ALLOCATOR pg_malloc0 |
Definition at line 54 of file pg_verifybackup.h.
#define SH_SCOPE static inline |
Definition at line 53 of file pg_verifybackup.h.
#define should_verify_checksum | ( | m | ) | (((m)->matched) && !((m)->bad) && (((m)->checksum_type) != CHECKSUM_TYPE_NONE)) |
Definition at line 40 of file pg_verifybackup.h.
typedef struct manifest_data manifest_data |
typedef struct manifest_file manifest_file |
typedef struct manifest_wal_range manifest_wal_range |
typedef struct verifier_context verifier_context |
astreamer* astreamer_verify_content_new | ( | astreamer * | next, |
verifier_context * | context, | ||
char * | archive_name, | ||
Oid | tblspc_oid | ||
) |
Definition at line 66 of file astreamer_verify.c.
References astreamer_verify::archive_name, astreamer_verify_ops, astreamer_verify::base, astreamer::bbs_next, astreamer::bbs_ops, astreamer_verify::checksum_ctx, astreamer_verify::context, context, next, palloc0(), pg_malloc(), and astreamer_verify::tblspc_oid.
Referenced by create_archive_verifier().
void void pg_attribute_noreturn | ( | ) |
void report_backup_error | ( | verifier_context * | context, |
const char *pg_restrict | fmt, | ||
... | |||
) |
void void report_fatal_error | ( | const char *pg_restrict | fmt, |
... | |||
) |
bool should_ignore_relpath | ( | verifier_context * | context, |
const char * | relpath | ||
) |
Definition at line 1267 of file pg_verifybackup.c.
References context, SimpleStringListCell::next, relpath, and SimpleStringListCell::val.
Referenced by member_verify_header(), report_extra_backup_files(), verify_backup_checksums(), verify_plain_backup_directory(), and verify_tar_backup().