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 "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 230 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 825 of file pg_backup_directory.c.
References _archiveHandle::formatData, and pg_malloc().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 581 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 845 of file pg_backup_directory.c.
References _archiveHandle::formatData, and free.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 369 of file pg_backup_directory.c.
References lclContext::dataFH, EndCompressFileHandle(), _archiveHandle::formatData, if(), and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 693 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 723 of file pg_backup_directory.c.
References EndCompressFileHandle(), _archiveHandle::formatData, if(), lclContext::LOsTocFH, and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 434 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 765 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, _tocEntry::reqs, setFilePath(), stat, strlcat(), and _archiveHandle::toc.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 304 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 384 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 415 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 555 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 520 of file pg_backup_directory.c.
References lclContext::dataFH, _archiveHandle::formatData, and CompressFileHandle::getc_func.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 281 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 632 of file pg_backup_directory.c.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 322 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 675 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 653 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 857 of file pg_backup_directory.c.
References WriteDataChunksForTocEntry().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 874 of file pg_backup_directory.c.
References parallel_restore().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 533 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 494 of file pg_backup_directory.c.
References lclContext::dataFH, _archiveHandle::formatData, i, if(), and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 346 of file pg_backup_directory.c.
References data, lclContext::dataFH, _archiveHandle::formatData, if(), and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 260 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 109 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, closedir(), _archiveHandle::ClosePtr, dirent::d_name, lclContext::dataFH, _archiveHandle::DeClonePtr, lclContext::directory, EndCompressFileHandle(), _archiveHandle::EndDataPtr, _archiveHandle::EndLOPtr, _archiveHandle::EndLOsPtr, _archiveHandle::format, _archiveHandle::formatData, _archiveHandle::fSpec, InitDiscoverCompressFileHandle(), lclContext::LOsTocFH, MAXPGPATH, mkdir, _archiveHandle::mode, opendir(), PG_BINARY_R, pg_fatal, pg_malloc0(), _archiveHandle::PrepParallelRestorePtr, _archiveHandle::PrintExtraTocPtr, _archiveHandle::PrintTocDataPtr, _archiveHandle::ReadBufPtr, _archiveHandle::ReadBytePtr, readdir(), _archiveHandle::ReadExtraTocPtr, ReadHead(), ReadToc(), _archiveHandle::ReopenPtr, S_ISDIR, setFilePath(), stat::st_mode, _archiveHandle::StartDataPtr, _archiveHandle::StartLOPtr, _archiveHandle::StartLOsPtr, stat, _archiveHandle::WorkerJobDumpPtr, _archiveHandle::WorkerJobRestorePtr, _archiveHandle::WriteBufPtr, _archiveHandle::WriteBytePtr, _archiveHandle::WriteDataPtr, and _archiveHandle::WriteExtraTocPtr.
Referenced by _allocAH().
|
static |
Definition at line 739 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().