PostgreSQL Source Code git master
|
#include "postgres_fe.h"
#include <dirent.h>
#include <sys/stat.h>
#include "common/file_utils.h"
#include "compress_io.h"
#include "dumputils.h"
#include "parallel.h"
#include "pg_backup_utils.h"
Go to the source code of this file.
Data Structures | |
struct | lclContext |
struct | lclTocEntry |
|
static |
Definition at line 198 of file pg_backup_directory.c.
References _tocEntry::dataDumper, _tocEntry::desc, _tocEntry::dumpId, lclTocEntry::filename, fn(), _tocEntry::formatData, MAXPGPATH, pg_malloc0(), pg_strdup(), and snprintf.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 793 of file pg_backup_directory.c.
References _archiveHandle::formatData, and pg_malloc().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 549 of file pg_backup_directory.c.
References pg_compress_specification::algorithm, archDirectory, archModeWrite, archTar, lclContext::dataFH, lclContext::directory, _archiveHandle::dosync, EndCompressFileHandle(), _archiveHandle::FH, _archiveHandle::format, _archiveHandle::formatData, if(), InitCompressFileHandle(), MAXPGPATH, _archiveHandle::mode, CompressFileHandle::open_write_func, ParallelBackupEnd(), ParallelBackupStart(), PG_BINARY_W, PG_COMPRESSION_NONE, pg_fatal, lclContext::pstate, setFilePath(), _archiveHandle::sync_method, WriteDataChunks(), WriteHead(), and WriteToc().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 813 of file pg_backup_directory.c.
References _archiveHandle::formatData, and free.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 337 of file pg_backup_directory.c.
References lclContext::dataFH, EndCompressFileHandle(), _archiveHandle::formatData, if(), and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 661 of file pg_backup_directory.c.
References buf, lclContext::dataFH, EndCompressFileHandle(), _archiveHandle::formatData, if(), len, lclContext::LOsTocFH, pg_fatal, and snprintf.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 691 of file pg_backup_directory.c.
References EndCompressFileHandle(), _archiveHandle::formatData, if(), lclContext::LOsTocFH, and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 402 of file pg_backup_directory.c.
References _PrintFileData(), CppAsString2, lclContext::directory, _restoreOptions::dropSchema, EndCompressFileHandle(), EndRestoreLO(), EndRestoreLOs(), CompressFileHandle::eof_func, _archiveHandle::formatData, _tocEntry::formatData, CompressFileHandle::gets_func, InitDiscoverCompressFileHandle(), lclContext::LOsTocFH, MAXPGPATH, PG_BINARY_R, pg_fatal, _archiveHandle::public, Archive::ropt, setFilePath(), snprintf, StartRestoreLO(), and StartRestoreLOs().
Referenced by _PrintTocData().
|
static |
Definition at line 733 of file pg_backup_directory.c.
References pg_compress_specification::algorithm, _archiveHandle::compression_spec, _tocEntry::dataLength, _tocEntry::desc, lclTocEntry::filename, _tocEntry::formatData, if(), MAXPGPATH, _tocEntry::next, PG_COMPRESSION_GZIP, PG_COMPRESSION_LZ4, PG_COMPRESSION_NONE, PG_COMPRESSION_ZSTD, REQ_DATA, REQ_STATS, _tocEntry::reqs, setFilePath(), stat, strlcat(), and _archiveHandle::toc.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 272 of file pg_backup_directory.c.
References ahprintf(), lclTocEntry::filename, _tocEntry::formatData, if(), _archiveHandle::public, and Archive::verbose.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 352 of file pg_backup_directory.c.
References ahwrite(), buf, DEFAULT_IO_BUFFER_SIZE, EndCompressFileHandle(), filename, free, InitDiscoverCompressFileHandle(), PG_BINARY_R, pg_fatal, pg_malloc(), and CompressFileHandle::read_func.
Referenced by _LoadLOs(), and _PrintTocData().
|
static |
Definition at line 383 of file pg_backup_directory.c.
References _LoadLOs(), _PrintFileData(), _tocEntry::desc, lclTocEntry::filename, _tocEntry::formatData, if(), MAXPGPATH, and setFilePath().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 523 of file pg_backup_directory.c.
References buf, lclContext::dataFH, _archiveHandle::formatData, if(), len, and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 488 of file pg_backup_directory.c.
References lclContext::dataFH, _archiveHandle::formatData, and CompressFileHandle::getc_func.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 249 of file pg_backup_directory.c.
References lclTocEntry::filename, _tocEntry::formatData, free, if(), pg_malloc0(), and ReadStr().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 600 of file pg_backup_directory.c.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 290 of file pg_backup_directory.c.
References _archiveHandle::compression_spec, lclTocEntry::filename, _archiveHandle::formatData, _tocEntry::formatData, InitCompressFileHandle(), MAXPGPATH, PG_BINARY_W, pg_fatal, and setFilePath().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 643 of file pg_backup_directory.c.
References _archiveHandle::compression_spec, lclContext::dataFH, lclContext::directory, _archiveHandle::formatData, InitCompressFileHandle(), MAXPGPATH, CompressFileHandle::open_write_func, PG_BINARY_W, pg_fatal, and snprintf.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 621 of file pg_backup_directory.c.
References pg_compress_specification::algorithm, _archiveHandle::formatData, _tocEntry::formatData, InitCompressFileHandle(), lclContext::LOsTocFH, MAXPGPATH, CompressFileHandle::open_write_func, PG_COMPRESSION_NONE, pg_fatal, and setFilePath().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 825 of file pg_backup_directory.c.
References WriteDataChunksForTocEntry().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 842 of file pg_backup_directory.c.
References parallel_restore().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 501 of file pg_backup_directory.c.
References buf, lclContext::dataFH, _archiveHandle::formatData, if(), len, and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 462 of file pg_backup_directory.c.
References lclContext::dataFH, _archiveHandle::formatData, i, if(), and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 314 of file pg_backup_directory.c.
References data, lclContext::dataFH, _archiveHandle::formatData, if(), and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 228 of file pg_backup_directory.c.
References lclTocEntry::filename, _tocEntry::formatData, if(), and WriteStr().
Referenced by InitArchiveFmt_Directory().
void InitArchiveFmt_Directory | ( | ArchiveHandle * | AH | ) |
Definition at line 110 of file pg_backup_directory.c.
References _ArchiveEntry(), _Clone(), _CloseArchive(), _DeClone(), _EndData(), _EndLO(), _EndLOs(), _PrepParallelRestore(), _PrintExtraToc(), _PrintTocData(), _ReadBuf(), _ReadByte(), _ReadExtraToc(), _ReopenArchive(), _StartData(), _StartLO(), _StartLOs(), _WorkerJobDumpDirectory(), _WorkerJobRestoreDirectory(), _WriteBuf(), _WriteByte(), _WriteData(), _WriteExtraToc(), archDirectory, _archiveHandle::ArchiveEntryPtr, archModeWrite, archTar, _archiveHandle::ClonePtr, _archiveHandle::ClosePtr, create_or_open_dir(), lclContext::dataFH, _archiveHandle::DeClonePtr, lclContext::directory, EndCompressFileHandle(), _archiveHandle::EndDataPtr, _archiveHandle::EndLOPtr, _archiveHandle::EndLOsPtr, _archiveHandle::format, _archiveHandle::formatData, _archiveHandle::fSpec, InitDiscoverCompressFileHandle(), lclContext::LOsTocFH, MAXPGPATH, _archiveHandle::mode, PG_BINARY_R, pg_fatal, pg_malloc0(), _archiveHandle::PrepParallelRestorePtr, _archiveHandle::PrintExtraTocPtr, _archiveHandle::PrintTocDataPtr, _archiveHandle::ReadBufPtr, _archiveHandle::ReadBytePtr, _archiveHandle::ReadExtraTocPtr, ReadHead(), ReadToc(), _archiveHandle::ReopenPtr, setFilePath(), _archiveHandle::StartDataPtr, _archiveHandle::StartLOPtr, _archiveHandle::StartLOsPtr, _archiveHandle::WorkerJobDumpPtr, _archiveHandle::WorkerJobRestorePtr, _archiveHandle::WriteBufPtr, _archiveHandle::WriteBytePtr, _archiveHandle::WriteDataPtr, and _archiveHandle::WriteExtraTocPtr.
Referenced by _allocAH().
|
static |
Definition at line 707 of file pg_backup_directory.c.
References buf, lclContext::directory, _archiveHandle::formatData, if(), MAXPGPATH, and pg_fatal.
Referenced by _CloseArchive(), _LoadLOs(), _PrepParallelRestore(), _PrintTocData(), _StartData(), _StartLOs(), and InitArchiveFmt_Directory().