PostgreSQL Source Code git master
Loading...
Searching...
No Matches
load_manifest.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * Load data from a backup manifest into memory.
4 *
5 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
6 * Portions Copyright (c) 1994, Regents of the University of California
7 *
8 * src/bin/pg_combinebackup/load_manifest.h
9 *
10 *-------------------------------------------------------------------------
11 */
12#ifndef LOAD_MANIFEST_H
13#define LOAD_MANIFEST_H
14
15#include "access/xlogdefs.h"
17
18/*
19 * Each file described by the manifest file is parsed to produce an object
20 * like this.
21 */
31
32#define SH_PREFIX manifest_files
33#define SH_ELEMENT_TYPE manifest_file
34#define SH_KEY_TYPE const char *
35#define SH_SCOPE extern
36#define SH_RAW_ALLOCATOR pg_malloc0
37#define SH_DECLARE
38#include "lib/simplehash.h"
39
40/*
41 * Each WAL range described by the manifest file is parsed to produce an
42 * object like this.
43 */
52
53/*
54 * All the data parsed from a backup_manifest file.
55 */
63
64extern manifest_data *load_backup_manifest(char *backup_directory);
66 char **backup_directories);
67
68#endif /* LOAD_MANIFEST_H */
uint8_t uint8
Definition c.h:544
uint64_t uint64
Definition c.h:547
uint32_t uint32
Definition c.h:546
pg_checksum_type
struct manifest_wal_range manifest_wal_range
manifest_data ** load_backup_manifests(int n_backups, char **backup_directories)
struct manifest_file manifest_file
manifest_data * load_backup_manifest(char *backup_directory)
struct manifest_data manifest_data
static int fb(int x)
manifest_wal_range * last_wal_range
manifest_wal_range * first_wal_range
uint64 system_identifier
manifest_files_hash * files
uint8 * checksum_payload
pg_checksum_type checksum_type
const char * pathname
struct manifest_wal_range * next
struct manifest_wal_range * prev
uint64 XLogRecPtr
Definition xlogdefs.h:21
uint32 TimeLineID
Definition xlogdefs.h:63