PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include <unistd.h>
#include <dirent.h>
#include <limits.h>
#include <sys/select.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <signal.h>
#include <time.h>
#include "access/xlog_internal.h"
#include "astreamer_inject.h"
#include "backup/basebackup.h"
#include "common/compression.h"
#include "common/file_perm.h"
#include "common/file_utils.h"
#include "common/logging.h"
#include "fe_utils/option_utils.h"
#include "fe_utils/recovery_gen.h"
#include "getopt_long.h"
#include "receivelog.h"
#include "streamutil.h"
Go to the source code of this file.
Data Structures | |
struct | TablespaceListCell |
struct | TablespaceList |
struct | ArchiveStreamState |
struct | WriteTarState |
struct | WriteManifestState |
struct | logstreamer_param |
Macros | |
#define | ERRCODE_DATA_CORRUPTED "XX001" |
#define | MINIMUM_VERSION_FOR_PG_WAL 100000 |
#define | MINIMUM_VERSION_FOR_TEMP_SLOTS 100000 |
#define | MINIMUM_VERSION_FOR_MANIFESTS 130000 |
#define | MINIMUM_VERSION_FOR_TERMINATED_TARFILE 150000 |
#define | MINIMUM_VERSION_FOR_WAL_SUMMARIES 170000 |
#define | VERBOSE_FILENAME_LENGTH 35 |
Typedefs | |
typedef struct TablespaceListCell | TablespaceListCell |
typedef struct TablespaceList | TablespaceList |
typedef struct ArchiveStreamState | ArchiveStreamState |
typedef struct WriteTarState | WriteTarState |
typedef struct WriteManifestState | WriteManifestState |
typedef void(* | WriteDataCallback) (size_t nbytes, char *buf, void *callback_data) |
Enumerations | |
enum | IncludeWal { NO_WAL , FETCH_WAL , STREAM_WAL } |
enum | CompressionLocation { COMPRESS_LOCATION_UNSPECIFIED , COMPRESS_LOCATION_CLIENT , COMPRESS_LOCATION_SERVER } |
Functions | |
static void | usage (void) |
static void | verify_dir_is_empty_or_create (char *dirname, bool *created, bool *found) |
static void | progress_update_filename (const char *filename) |
static void | progress_report (int tablespacenum, bool force, bool finished) |
static astreamer * | CreateBackupStreamer (char *archive_name, char *spclocation, astreamer **manifest_inject_streamer_p, bool is_recovery_guc_supported, bool expect_unterminated_tarfile, pg_compress_specification *compress) |
static void | ReceiveArchiveStreamChunk (size_t r, char *copybuf, void *callback_data) |
static char | GetCopyDataByte (size_t r, char *copybuf, size_t *cursor) |
static char * | GetCopyDataString (size_t r, char *copybuf, size_t *cursor) |
static uint64 | GetCopyDataUInt64 (size_t r, char *copybuf, size_t *cursor) |
static void | GetCopyDataEnd (size_t r, char *copybuf, size_t cursor) |
static void | ReportCopyDataParseError (size_t r, char *copybuf) |
static void | ReceiveTarFile (PGconn *conn, char *archive_name, char *spclocation, bool tablespacenum, pg_compress_specification *compress) |
static void | ReceiveTarCopyChunk (size_t r, char *copybuf, void *callback_data) |
static void | ReceiveBackupManifest (PGconn *conn) |
static void | ReceiveBackupManifestChunk (size_t r, char *copybuf, void *callback_data) |
static void | ReceiveBackupManifestInMemory (PGconn *conn, PQExpBuffer buf) |
static void | ReceiveBackupManifestInMemoryChunk (size_t r, char *copybuf, void *callback_data) |
static void | BaseBackup (char *compression_algorithm, char *compression_detail, CompressionLocation compressloc, pg_compress_specification *client_compress, char *incremental_manifest) |
static bool | reached_end_position (XLogRecPtr segendpos, uint32 timeline, bool segment_finished) |
static const char * | get_tablespace_mapping (const char *dir) |
static void | tablespace_list_append (const char *arg) |
static void | cleanup_directories_atexit (void) |
static void | disconnect_atexit (void) |
static void | sigchld_handler (SIGNAL_ARGS) |
static void | kill_bgchild_atexit (void) |
static int | LogStreamerMain (logstreamer_param *param) |
static void | StartLogStreamer (char *startpos, uint32 timeline, char *sysidentifier, pg_compress_algorithm wal_compress_algorithm, int wal_compress_level) |
static int32 | parse_max_rate (char *src) |
static void | backup_parse_compress_options (char *option, char **algorithm, char **detail, CompressionLocation *locationres) |
static void | ReceiveCopyData (PGconn *conn, WriteDataCallback callback, void *callback_data) |
static void | ReceiveArchiveStream (PGconn *conn, pg_compress_specification *compress) |
int | main (int argc, char **argv) |
#define ERRCODE_DATA_CORRUPTED "XX001" |
Definition at line 41 of file pg_basebackup.c.
#define MINIMUM_VERSION_FOR_MANIFESTS 130000 |
Definition at line 96 of file pg_basebackup.c.
#define MINIMUM_VERSION_FOR_PG_WAL 100000 |
Definition at line 86 of file pg_basebackup.c.
#define MINIMUM_VERSION_FOR_TEMP_SLOTS 100000 |
Definition at line 91 of file pg_basebackup.c.
#define MINIMUM_VERSION_FOR_TERMINATED_TARFILE 150000 |
Definition at line 102 of file pg_basebackup.c.
#define MINIMUM_VERSION_FOR_WAL_SUMMARIES 170000 |
Definition at line 107 of file pg_basebackup.c.
#define VERBOSE_FILENAME_LENGTH 35 |
typedef struct ArchiveStreamState ArchiveStreamState |
typedef struct TablespaceList TablespaceList |
typedef struct TablespaceListCell TablespaceListCell |
typedef void(* WriteDataCallback) (size_t nbytes, char *buf, void *callback_data) |
Definition at line 79 of file pg_basebackup.c.
typedef struct WriteManifestState WriteManifestState |
typedef struct WriteTarState WriteTarState |
enum CompressionLocation |
Enumerator | |
---|---|
COMPRESS_LOCATION_UNSPECIFIED | |
COMPRESS_LOCATION_CLIENT | |
COMPRESS_LOCATION_SERVER |
Definition at line 122 of file pg_basebackup.c.
enum IncludeWal |
|
static |
Definition at line 986 of file pg_basebackup.c.
References COMPRESS_LOCATION_CLIENT, COMPRESS_LOCATION_SERVER, COMPRESS_LOCATION_UNSPECIFIED, and parse_compress_options().
Referenced by main().
|
static |
Definition at line 1753 of file pg_basebackup.c.
References _, _dosmaperr(), pg_compress_specification::algorithm, AppendIntegerCommandOption(), AppendPlainCommandOption(), AppendStringCommandOption(), Assert, backup_target, basedir, bgchild, bgpipe, buf, CheckServerVersionForStreaming(), checksum_failure, colon, COMPRESS_LOCATION_SERVER, compression_algorithm, conn, destroyPQExpBuffer(), do_sync, durable_rename(), ERRCODE_DATA_CORRUPTED, estimatesize, exit(), fastcheckpoint, fd(), FETCH_WAL, filename, format, found_tablespace_dirs, fprintf, GenerateRecoveryConfig(), get_tablespace_mapping(), GetDbnameFromConnectionOptions(), has_xlogendptr, i, includewal, initPQExpBuffer(), is_absolute_path, label, pg_compress_specification::level, made_tablespace_dirs, manifest, manifest_checksums, manifest_force_encode, MAXPGPATH, maxrate, MINIMUM_VERSION_FOR_WAL_SUMMARIES, NO_WAL, PG_BINARY, PG_COMPRESSION_GZIP, PG_COMPRESSION_NONE, PG_DIAG_SQLSTATE, pg_fatal, pg_log_error, pg_log_error_hint, pg_log_info, PGRES_COMMAND_OK, PGRES_COPY_IN, PGRES_FATAL_ERROR, PGRES_TUPLES_OK, pnstrdup(), PQclear(), PQerrorMessage(), PQfinish(), PQgetisnull(), PQgetResult(), PQgetvalue(), PQnfields(), PQntuples(), PQparameterStatus(), PQputCopyData(), PQputCopyEnd(), PQresStatus(), PQresultErrorField(), PQresultStatus(), PQsendQuery(), PQserverVersion(), progress_report(), progress_update_filename(), psprintf(), read, ReceiveArchiveStream(), ReceiveBackupManifest(), ReceiveTarFile(), recoveryconfcontents, replication_slot, res, RunIdentifySystem(), showprogress, snprintf, StartLogStreamer(), STREAM_WAL, strlcpy(), sync_method, tablespacecount, totaldone, totalsize_kb, unconstify, verbose, verify_checksums, verify_dir_is_empty_or_create(), wait_result_to_str(), write, writerecoveryconf, and xlogendptr.
Referenced by main().
|
static |
Definition at line 236 of file pg_basebackup.c.
References basedir, checksum_failure, found_existing_pgdata, found_existing_xlogdir, found_tablespace_dirs, in_log_streamer, made_new_pgdata, made_new_xlogdir, made_tablespace_dirs, noclean, pg_log_error, pg_log_info, rmtree(), success, and xlog_dir.
Referenced by main().
|
static |
Definition at line 1061 of file pg_basebackup.c.
References pg_compress_specification::algorithm, Assert, astreamer_extractor_new(), astreamer_gzip_decompressor_new(), astreamer_gzip_writer_new(), astreamer_lz4_compressor_new(), astreamer_lz4_decompressor_new(), astreamer_plain_writer_new(), astreamer_recovery_injector_new(), astreamer_tar_archiver_new(), astreamer_tar_parser_new(), astreamer_tar_terminator_new(), astreamer_zstd_compressor_new(), astreamer_zstd_decompressor_new(), basedir, directory, exit(), format, get_tablespace_mapping(), is_absolute_path, manifest, MAXPGPATH, PG_COMPRESSION_GZIP, PG_COMPRESSION_LZ4, PG_COMPRESSION_NONE, PG_COMPRESSION_ZSTD, pg_log_error, pg_log_error_detail, pg_log_error_hint, progress_update_filename(), psprintf(), recoveryconfcontents, snprintf, generate_unaccent_rules::stdout, strlcat(), and writerecoveryconf.
Referenced by ReceiveArchiveStreamChunk(), and ReceiveTarFile().
|
static |
Definition at line 283 of file pg_basebackup.c.
References conn, and PQfinish().
Referenced by main().
|
static |
Definition at line 1678 of file pg_basebackup.c.
References canonicalize_path(), TablespaceList::head, MAXPGPATH, TablespaceListCell::new_dir, TablespaceListCell::next, TablespaceListCell::old_dir, strlcpy(), and tablespace_dirs.
Referenced by BaseBackup(), and CreateBackupStreamer().
|
static |
Definition at line 1516 of file pg_basebackup.c.
References copybuf, and ReportCopyDataParseError().
Referenced by ReceiveArchiveStreamChunk().
|
static |
Definition at line 1569 of file pg_basebackup.c.
References copybuf, and ReportCopyDataParseError().
Referenced by ReceiveArchiveStreamChunk().
|
static |
Definition at line 1530 of file pg_basebackup.c.
References copybuf, endpos, ReportCopyDataParseError(), and startpos.
Referenced by ReceiveArchiveStreamChunk().
|
static |
Definition at line 1554 of file pg_basebackup.c.
References copybuf, pg_ntoh64, and ReportCopyDataParseError().
Referenced by ReceiveArchiveStreamChunk().
|
static |
Definition at line 308 of file pg_basebackup.c.
References bgchild, bgchild_exited, and kill.
Referenced by StartLogStreamer().
|
static |
Definition at line 545 of file pg_basebackup.c.
References bgchild_exited, logstreamer_param::bgconn, bgpipe, CreateWalDirectoryMethod(), CreateWalTarMethod(), StreamCtl::do_sync, WalWriteMethodOps::finish, format, WalWriteMethodOps::free, in_log_streamer, StreamCtl::mark_done, WalWriteMethod::ops, StreamCtl::partial_suffix, PG_COMPRESSION_NONE, pg_log_error, PGINVALID_SOCKET, PQfinish(), reached_end_position(), ReceiveXlogStream(), replication_slot, StreamCtl::replication_slot, standby_message_timeout, StreamCtl::standby_message_timeout, StreamCtl::startpos, logstreamer_param::startptr, StreamCtl::stop_socket, StreamCtl::stream_stop, StreamCtl::synchronous, logstreamer_param::sysidentifier, StreamCtl::sysidentifier, logstreamer_param::timeline, StreamCtl::timeline, logstreamer_param::wal_compress_algorithm, logstreamer_param::wal_compress_level, StreamCtl::walmethod, and logstreamer_param::xlog.
Referenced by StartLogStreamer().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 2355 of file pg_basebackup.c.
References pg_compress_specification::algorithm, Assert, backup_parse_compress_options(), backup_target, BaseBackup(), basedir, canonicalize_path(), cleanup_directories_atexit(), COMPRESS_LOCATION_CLIENT, COMPRESS_LOCATION_SERVER, COMPRESS_LOCATION_UNSPECIFIED, compression_algorithm, conn, connection_string, create_slot, dbgetpassword, dbhost, dbport, dbuser, disconnect_atexit(), do_sync, estimatesize, exit(), fastcheckpoint, FETCH_WAL, format, found_existing_pgdata, found_existing_xlogdir, free, get_progname(), GetConnection(), getopt_long(), includewal, is_absolute_path, label, made_new_pgdata, made_new_xlogdir, manifest, manifest_checksums, manifest_force_encode, maxrate, MINIMUM_VERSION_FOR_MANIFESTS, MINIMUM_VERSION_FOR_PG_WAL, no_argument, no_slot, NO_WAL, noclean, optarg, optind, option_parse_int(), pg_compress_specification::options, parse_compress_algorithm(), parse_compress_specification(), parse_max_rate(), parse_sync_method(), PG_COMPRESSION_NONE, pg_fatal, pg_free(), pg_log_error, pg_log_error_hint, pg_logging_init(), pg_mode_mask, pg_strcasecmp(), pg_strdup(), PG_TEXTDOMAIN, PQserverVersion(), pqsignal(), progname, psprintf(), replication_slot, required_argument, RetrieveWalSegSize(), set_pglocale_pgservice(), showprogress, SIGCHLD, sigchld_handler(), standby_message_timeout, STREAM_WAL, success, symlink, sync_method, tablespace_list_append(), temp_replication_slot, usage(), validate_compress_specification(), verbose, verify_checksums, verify_dir_is_empty_or_create(), writerecoveryconf, and xlog_dir.
|
static |
Definition at line 901 of file pg_basebackup.c.
References MAX_RATE_UPPER, and pg_fatal.
Referenced by main().
Definition at line 816 of file pg_basebackup.c.
References fprintf, last_progress_report, ngettext, now(), progress_filename, showprogress, snprintf, tablespacecount, totaldone, totalsize_kb, UINT64_FORMAT, verbose, and VERBOSE_FILENAME_LENGTH.
Referenced by BaseBackup(), ReceiveArchiveStreamChunk(), ReceiveTarCopyChunk(), and ReceiveTarFile().
|
static |
Definition at line 792 of file pg_basebackup.c.
References filename, free, pg_strdup(), progress_filename, showprogress, and verbose.
Referenced by BaseBackup(), CreateBackupStreamer(), and ReceiveTarFile().
|
static |
Definition at line 462 of file pg_basebackup.c.
References bgpipe, has_xlogendptr, pg_fatal, read, select, and xlogendptr.
Referenced by LogStreamerMain().
|
static |
Definition at line 1284 of file pg_basebackup.c.
References astreamer_finalize(), astreamer_free(), astreamer_inject_file(), conn, destroyPQExpBuffer(), ReceiveArchiveStreamChunk(), and ReceiveCopyData().
Referenced by BaseBackup().
|
static |
Definition at line 1332 of file pg_basebackup.c.
References appendPQExpBuffer(), astreamer_content(), astreamer_finalize(), astreamer_free(), ASTREAMER_UNKNOWN, backup_target, basedir, copybuf, CreateBackupStreamer(), createPQExpBuffer(), GetCopyDataByte(), GetCopyDataEnd(), GetCopyDataString(), GetCopyDataUInt64(), pg_fatal, progress_report(), ReportCopyDataParseError(), snprintf, and totaldone.
Referenced by ReceiveArchiveStream().
|
static |
Definition at line 1698 of file pg_basebackup.c.
References basedir, conn, pg_fatal, ReceiveBackupManifestChunk(), ReceiveCopyData(), and snprintf.
Referenced by BaseBackup().
|
static |
Definition at line 1717 of file pg_basebackup.c.
References copybuf, and pg_fatal.
Referenced by ReceiveBackupManifest().
|
static |
Definition at line 1735 of file pg_basebackup.c.
References buf, conn, ReceiveBackupManifestInMemoryChunk(), and ReceiveCopyData().
Referenced by ReceiveTarFile().
|
static |
Definition at line 1744 of file pg_basebackup.c.
References appendPQExpBuffer(), buf, and copybuf.
Referenced by ReceiveBackupManifestInMemory().
|
static |
Definition at line 1014 of file pg_basebackup.c.
References bgchild_exited, conn, copybuf, pg_fatal, PGRES_COPY_OUT, PQclear(), PQerrorMessage(), PQfreemem(), PQgetCopyData(), PQgetResult(), PQresultStatus(), and res.
Referenced by ReceiveArchiveStream(), ReceiveBackupManifest(), ReceiveBackupManifestInMemory(), and ReceiveTarFile().
|
static |
Definition at line 1662 of file pg_basebackup.c.
References astreamer_content(), ASTREAMER_UNKNOWN, copybuf, progress_report(), and totaldone.
Referenced by ReceiveTarFile().
|
static |
Definition at line 1599 of file pg_basebackup.c.
References astreamer_finalize(), astreamer_free(), astreamer_inject_file(), buf, conn, CreateBackupStreamer(), initPQExpBuffer(), MINIMUM_VERSION_FOR_RECOVERY_GUC, MINIMUM_VERSION_FOR_TERMINATED_TARFILE, pg_fatal, PQExpBufferDataBroken, PQserverVersion(), progress_report(), progress_update_filename(), ReceiveBackupManifestInMemory(), ReceiveCopyData(), ReceiveTarCopyChunk(), and termPQExpBuffer().
Referenced by BaseBackup().
|
static |
Definition at line 1584 of file pg_basebackup.c.
References copybuf, and pg_fatal.
Referenced by GetCopyDataByte(), GetCopyDataEnd(), GetCopyDataString(), GetCopyDataUInt64(), and ReceiveArchiveStreamChunk().
|
static |
|
static |
Definition at line 616 of file pg_basebackup.c.
References basedir, bgchild, logstreamer_param::bgconn, bgpipe, conn, create_slot, CreateReplicationSlot(), exit(), format, GetConnection(), kill_bgchild_atexit(), LogStreamerMain(), MAXPGPATH, MINIMUM_VERSION_FOR_PG_WAL, MINIMUM_VERSION_FOR_TEMP_SLOTS, MINIMUM_VERSION_FOR_WAL_SUMMARIES, pg_dir_create_mode, pg_fatal, pg_log_info, pg_malloc0(), pg_mkdir_p(), PQbackendPID(), PQserverVersion(), psprintf(), replication_slot, snprintf, startpos, logstreamer_param::startptr, logstreamer_param::sysidentifier, temp_replication_slot, logstreamer_param::timeline, verbose, logstreamer_param::wal_compress_algorithm, logstreamer_param::wal_compress_level, WalSegSz, logstreamer_param::xlog, and XLogSegmentOffset.
Referenced by BaseBackup().
|
static |
Definition at line 320 of file pg_basebackup.c.
References arg, canonicalize_path(), TablespaceList::head, is_absolute_path, is_nonwindows_absolute_path, is_windows_absolute_path, MAXPGPATH, TablespaceListCell::new_dir, TablespaceListCell::next, TablespaceListCell::old_dir, pg_fatal, pg_malloc0(), tablespace_dirs, and TablespaceList::tail.
Referenced by main().
|
static |
Definition at line 747 of file pg_basebackup.c.
References pg_check_dir(), pg_dir_create_mode, pg_fatal, and pg_mkdir_p().
Referenced by BaseBackup(), and main().
|
static |
Definition at line 149 of file pg_basebackup.c.
Referenced by BaseBackup(), main(), and ReceiveArchiveStreamChunk().
|
static |
Definition at line 130 of file pg_basebackup.c.
Referenced by BaseBackup(), cleanup_directories_atexit(), CreateBackupStreamer(), CreateWalDirectoryMethod(), main(), PathNameCreateTemporaryDir(), ReceiveArchiveStreamChunk(), ReceiveBackupManifest(), scan_directory(), and StartLogStreamer().
|
static |
Definition at line 178 of file pg_basebackup.c.
Referenced by BaseBackup(), kill_bgchild_atexit(), and StartLogStreamer().
|
static |
Definition at line 182 of file pg_basebackup.c.
Referenced by kill_bgchild_atexit(), LogStreamerMain(), ReceiveCopyData(), and sigchld_handler().
|
static |
Definition at line 174 of file pg_basebackup.c.
Referenced by BaseBackup(), LogStreamerMain(), reached_end_position(), and StartLogStreamer().
Definition at line 136 of file pg_basebackup.c.
Referenced by BaseBackup(), cleanup_directories_atexit(), and PageIsVerifiedExtended().
Definition at line 150 of file pg_basebackup.c.
Referenced by main(), and StartLogStreamer().
Definition at line 143 of file pg_basebackup.c.
Referenced by BaseBackup(), and main().
Definition at line 138 of file pg_basebackup.c.
Referenced by BaseBackup(), and main().
Definition at line 141 of file pg_basebackup.c.
Referenced by BaseBackup(), and main().
|
static |
Definition at line 133 of file pg_basebackup.c.
Referenced by _conv(), _fmt(), _print_horizontal_line(), BaseBackup(), check_selective_binary_conversion(), checkJsonOutputFormat(), CreateBackupStreamer(), datetime_format_has_tz(), datetime_to_char_body(), do_to_timestamp(), doabbr(), dopr(), ecpg_log(), exec_simple_query(), ExplainMissingMembers(), ExplainPrintSerialize(), find_arguments(), float4_to_char(), float8_to_char(), get_json_format(), getCopyStart(), getJsonEncodingConst(), getRowDescriptions(), int4_to_char(), int8_to_char(), log_status_format(), LogStreamerMain(), main(), makeJsonByteaToTextConversion(), makeJsonIsPredicate(), makeJsonValueExpr(), NUM_cache(), numeric_to_char(), numeric_to_number(), parseArchiveFormat(), pg_strftime(), PGTYPESdate_fmt_asc(), print_aligned_text(), print_aligned_vertical(), printtup_prepare_info(), raw_expression_tree_walker_impl(), ReceiveCopyBegin(), SendCopyBegin(), SendFunctionResult(), SendRowDescriptionMessage(), StartLogStreamer(), transformJsonFuncExpr(), transformJsonParseArg(), transformJsonPassingArgs(), transformJsonReturning(), and transformJsonValueExpr().
Definition at line 160 of file pg_basebackup.c.
Referenced by cleanup_directories_atexit(), and main().
Definition at line 162 of file pg_basebackup.c.
Referenced by cleanup_directories_atexit(), and main().
Definition at line 164 of file pg_basebackup.c.
Referenced by BaseBackup(), and cleanup_directories_atexit().
|
static |
Definition at line 188 of file pg_basebackup.c.
Referenced by BaseBackup(), and reached_end_position().
Definition at line 179 of file pg_basebackup.c.
Referenced by cleanup_directories_atexit(), and LogStreamerMain().
|
static |
Definition at line 140 of file pg_basebackup.c.
Referenced by BaseBackup(), and main().
|
static |
Definition at line 134 of file pg_basebackup.c.
Referenced by _fmt(), addNode(), BaseBackup(), CATALOG(), ChooseConstraintName(), ChooseExtendedStatisticName(), ChooseRelationName(), doPickSplit(), dumpEnumType(), dumpSecLabel(), dumpTableSecLabel(), emitShSecLabels(), expandNSItemAttrs(), expandRecordVariable(), expandRTE(), expandTupleDesc(), ExplainCustomChildren(), main(), makeObjectName(), plpgsql_ns_push(), plpgsql_parse_err_condition(), plpgsql_recognize_err_condition(), sepgsql_get_label(), sepgsql_mcstrans_in(), sepgsql_mcstrans_out(), SetSecurityLabel(), SetSharedSecurityLabel(), spgFormNodeTuple(), spgSplitNodeAction(), TypeGetTupleDesc(), xact_desc_relations(), and xact_desc_stats().
|
static |
Definition at line 145 of file pg_basebackup.c.
Referenced by progress_report().
Definition at line 159 of file pg_basebackup.c.
Referenced by cleanup_directories_atexit(), and main().
Definition at line 161 of file pg_basebackup.c.
Referenced by cleanup_directories_atexit(), and main().
Definition at line 163 of file pg_basebackup.c.
Referenced by BaseBackup(), and cleanup_directories_atexit().
Definition at line 153 of file pg_basebackup.c.
Referenced by AddFileToBackupManifest(), AddWALInfoToBackupManifest(), AppendStringToManifest(), BaseBackup(), combinebackup_per_file_cb(), combinebackup_per_wal_range_cb(), combinebackup_system_identifier_cb(), CreateBackupStreamer(), FreeBackupManifest(), InitializeBackupManifest(), IsManifestEnabled(), main(), parse_required_wal(), perform_base_backup(), report_extra_backup_files(), SendBackupManifest(), sendDir(), sendFile(), sendFileWithContent(), sendTablespace(), verify_backup_checksums(), verifybackup_per_file_cb(), verifybackup_per_wal_range_cb(), verifybackup_system_identifier(), and verifybackup_version_cb().
|
static |
Definition at line 155 of file pg_basebackup.c.
Referenced by BaseBackup(), and main().
Definition at line 154 of file pg_basebackup.c.
Referenced by BaseBackup(), and main().
|
static |
Definition at line 146 of file pg_basebackup.c.
Referenced by BaseBackup(), bbsink_throttle_new(), main(), and parse_basebackup_options().
Definition at line 151 of file pg_basebackup.c.
Referenced by main().
Definition at line 135 of file pg_basebackup.c.
Referenced by cleanup_directories_atexit(), and main().
|
static |
Definition at line 170 of file pg_basebackup.c.
Referenced by progress_report(), and progress_update_filename().
|
static |
Definition at line 194 of file pg_basebackup.c.
Referenced by astreamer_recovery_injector_new(), BaseBackup(), CreateBackupStreamer(), and setup_recovery().
|
static |
Definition at line 147 of file pg_basebackup.c.
Referenced by BaseBackup(), GenerateRecoveryConfig(), LogStreamerMain(), main(), and StartLogStreamer().
Definition at line 137 of file pg_basebackup.c.
Referenced by BaseBackup(), main(), progress_report(), and progress_update_filename().
|
static |
Definition at line 144 of file pg_basebackup.c.
Referenced by CalculateCopyStreamSleeptime(), LogStreamerMain(), and main().
Definition at line 158 of file pg_basebackup.c.
Referenced by cleanup_directories_atexit(), and main().
|
static |
Definition at line 156 of file pg_basebackup.c.
Referenced by BaseBackup(), and main().
|
static |
Definition at line 131 of file pg_basebackup.c.
Referenced by get_tablespace_mapping(), and tablespace_list_append().
|
static |
Definition at line 169 of file pg_basebackup.c.
Referenced by BaseBackup(), and progress_report().
Definition at line 148 of file pg_basebackup.c.
Referenced by main(), and StartLogStreamer().
|
static |
Definition at line 168 of file pg_basebackup.c.
Referenced by BaseBackup(), progress_report(), ReceiveArchiveStreamChunk(), and ReceiveTarCopyChunk().
|
static |
Definition at line 167 of file pg_basebackup.c.
Referenced by BaseBackup(), and progress_report().
|
static |
Definition at line 139 of file pg_basebackup.c.
Referenced by BaseBackup(), main(), progress_report(), progress_update_filename(), and StartLogStreamer().
Definition at line 152 of file pg_basebackup.c.
Referenced by BaseBackup(), and main().
Definition at line 142 of file pg_basebackup.c.
Referenced by BaseBackup(), CreateBackupStreamer(), and main().
|
static |
Definition at line 132 of file pg_basebackup.c.
Referenced by cleanup_directories_atexit(), and main().
|
static |
Definition at line 185 of file pg_basebackup.c.
Referenced by BaseBackup(), and reached_end_position().