#include "postgres_fe.h"
#include "access/xlog_internal.h"
#include "catalog/pg_control.h"
#include "pg_verifybackup.h"
Go to the source code of this file.
Definition at line 91 of file astreamer_verify.c.
References Assert(), ASTREAMER_ARCHIVE_TRAILER, ASTREAMER_MEMBER_CONTENTS, ASTREAMER_MEMBER_HEADER, ASTREAMER_MEMBER_TRAILER, ASTREAMER_UNKNOWN, data, len, member_compute_checksum(), member_copy_control_data(), member_reset_info(), member_verify_checksum(), member_verify_control_data(), member_verify_header(), pg_fatal, astreamer_verify::verify_checksum, and astreamer_verify::verify_control_data.
Definition at line 67 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, next, palloc0(), pg_malloc(), verifier_context::skip_checksums, and astreamer_verify::tblspc_oid.
Referenced by create_archive_verifier().
Definition at line 138 of file astreamer_verify.c.
References Assert(), and astreamer::bbs_next.
Definition at line 147 of file astreamer_verify.c.
References astreamer_verify::checksum_ctx, and pfree().
Definition at line 254 of file astreamer_verify.c.
References Assert(), astreamer_verify::checksum_bytes, astreamer_verify::checksum_ctx, manifest_file::checksum_type, astreamer_verify::context, data, len, astreamer_verify::mfile, manifest_file::pathname, pg_checksum_update(), report_backup_error(), pg_checksum_context::type, and astreamer_verify::verify_checksum.
Referenced by astreamer_verify_content().
Definition at line 334 of file astreamer_verify.c.
References Assert(), astreamer_verify::control_file, astreamer_verify::control_file_bytes, data, len, Min, remaining, and astreamer_verify::verify_control_data.
Referenced by astreamer_verify_content().
Definition at line 423 of file astreamer_verify.c.
References astreamer_verify::checksum_bytes, astreamer_verify::control_file_bytes, astreamer_verify::mfile, astreamer_verify::verify_checksum, and astreamer_verify::verify_control_data.
Referenced by astreamer_verify_content().
Definition at line 285 of file astreamer_verify.c.
References astreamer_verify::archive_name, Assert(), astreamer_verify::checksum_bytes, astreamer_verify::checksum_ctx, manifest_file::checksum_length, manifest_file::checksum_payload, astreamer_verify::context, astreamer_verify::mfile, manifest_file::pathname, pg_checksum_final(), PG_CHECKSUM_MAX_LENGTH, report_backup_error(), manifest_file::size, and astreamer_verify::verify_checksum.
Referenced by astreamer_verify_content().
Definition at line 367 of file astreamer_verify.c.
References astreamer_verify::archive_name, Assert(), COMP_CRC32C, astreamer_verify::context, astreamer_verify::control_file, astreamer_verify::control_file_bytes, ControlFileData::crc, crc, EQ_CRC32C, FIN_CRC32C, INIT_CRC32C, manifest, verifier_context::manifest, astreamer_verify::mfile, manifest_file::pathname, PG_CONTROL_FILE_SIZE, PG_CONTROL_VERSION, ControlFileData::pg_control_version, report_fatal_error(), ControlFileData::system_identifier, astreamer_verify::verify_control_data, and XLOG_CONTROL_FILE.
Referenced by astreamer_verify_content().
Definition at line 161 of file astreamer_verify.c.
References astreamer_verify::archive_name, manifest_file::bad, canonicalize_path(), astreamer_verify::checksum_ctx, manifest_file::checksum_type, astreamer_verify::context, manifest_data::files, astreamer_member::is_directory, astreamer_member::is_link, verifier_context::manifest, manifest_file::matched, MAXPGPATH, astreamer_verify::mfile, OidIsValid, manifest_file::pathname, astreamer_member::pathname, pg_checksum_init(), report_backup_error(), should_ignore_relpath(), should_verify_checksum, manifest_file::size, astreamer_member::size, verifier_context::skip_checksums, snprintf, astreamer_verify::tblspc_oid, astreamer_verify::verify_checksum, astreamer_verify::verify_control_data, manifest_data::version, and XLOG_CONTROL_FILE.
Referenced by astreamer_verify_content().
Definition at line 57 of file astreamer_verify.c.
Referenced by astreamer_verify_content_new().