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 233 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 797 of file pg_backup_directory.c.
References _archiveHandle::formatData, and pg_malloc().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 569 of file pg_backup_directory.c.
References archDirectory, archModeWrite, archTar, cfclose(), cfopen_write(), lclContext::dataFH, lclContext::directory, _archiveHandle::dosync, _archiveHandle::FH, _archiveHandle::format, _archiveHandle::formatData, if(), MAXPGPATH, _archiveHandle::mode, ParallelBackupEnd(), ParallelBackupStart(), PG_BINARY_W, pg_fatal, lclContext::pstate, setFilePath(), WriteDataChunks(), WriteHead(), and WriteToc().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 819 of file pg_backup_directory.c.
References _archiveHandle::formatData, and free.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 677 of file pg_backup_directory.c.
References lclContext::blobsTocFH, buf, cfclose(), cfwrite(), lclContext::dataFH, _archiveHandle::formatData, if(), len, pg_fatal, and snprintf.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 700 of file pg_backup_directory.c.
References lclContext::blobsTocFH, cfclose(), _archiveHandle::formatData, if(), and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 367 of file pg_backup_directory.c.
References cfclose(), lclContext::dataFH, _archiveHandle::formatData, if(), and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 433 of file pg_backup_directory.c.
References _PrintFileData(), lclContext::blobsTocFH, cfclose(), cfeof(), cfgets(), cfopen_read(), CppAsString2, lclContext::directory, _restoreOptions::dropSchema, EndRestoreBlob(), EndRestoreBlobs(), _archiveHandle::formatData, MAXPGPATH, PG_BINARY_R, pg_fatal, _archiveHandle::public, Archive::ropt, setFilePath(), snprintf, StartRestoreBlob(), and StartRestoreBlobs().
Referenced by _PrintTocData().
|
static |
Definition at line 742 of file pg_backup_directory.c.
References _tocEntry::dataLength, _tocEntry::desc, lclTocEntry::filename, _tocEntry::formatData, if(), MAXPGPATH, _tocEntry::next, 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 382 of file pg_backup_directory.c.
References ahwrite(), buf, cfclose(), cfopen_read(), cfread(), filename, free, PG_BINARY_R, pg_fatal, pg_malloc(), and ZLIB_OUT_SIZE.
Referenced by _LoadBlobs(), and _PrintTocData().
|
static |
Definition at line 414 of file pg_backup_directory.c.
References _LoadBlobs(), _PrintFileData(), _tocEntry::desc, lclTocEntry::filename, _tocEntry::formatData, if(), MAXPGPATH, and setFilePath().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 544 of file pg_backup_directory.c.
References buf, cfread(), lclContext::dataFH, _archiveHandle::formatData, if(), len, and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 511 of file pg_backup_directory.c.
References cfgetc(), lclContext::dataFH, and _archiveHandle::formatData.
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 |
|
static |
Definition at line 658 of file pg_backup_directory.c.
References cfopen_write(), _archiveHandle::compression, lclContext::dataFH, lclContext::directory, _archiveHandle::formatData, MAXPGPATH, PG_BINARY_W, pg_fatal, and snprintf.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 639 of file pg_backup_directory.c.
References lclContext::blobsTocFH, cfopen_write(), _archiveHandle::formatData, MAXPGPATH, pg_fatal, and setFilePath().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 322 of file pg_backup_directory.c.
References cfopen_write(), _archiveHandle::compression, lclTocEntry::filename, _archiveHandle::formatData, _tocEntry::formatData, MAXPGPATH, PG_BINARY_W, pg_fatal, and setFilePath().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 831 of file pg_backup_directory.c.
References WriteDataChunksForTocEntry().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 848 of file pg_backup_directory.c.
References parallel_restore().
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 523 of file pg_backup_directory.c.
References buf, cfwrite(), lclContext::dataFH, _archiveHandle::formatData, get_cfp_error(), if(), len, and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 486 of file pg_backup_directory.c.
References cfwrite(), lclContext::dataFH, _archiveHandle::formatData, get_cfp_error(), i, if(), and pg_fatal.
Referenced by InitArchiveFmt_Directory().
|
static |
Definition at line 345 of file pg_backup_directory.c.
References cfwrite(), data, lclContext::dataFH, _archiveHandle::formatData, get_cfp_error(), 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 108 of file pg_backup_directory.c.
References _ArchiveEntry(), _Clone(), _CloseArchive(), _DeClone(), _EndBlob(), _EndBlobs(), _EndData(), _PrepParallelRestore(), _PrintExtraToc(), _PrintTocData(), _ReadBuf(), _ReadByte(), _ReadExtraToc(), _ReopenArchive(), _StartBlob(), _StartBlobs(), _StartData(), _WorkerJobDumpDirectory(), _WorkerJobRestoreDirectory(), _WriteBuf(), _WriteByte(), _WriteData(), _WriteExtraToc(), archDirectory, _archiveHandle::ArchiveEntryPtr, archModeWrite, archTar, lclContext::blobsTocFH, cfclose(), cfopen_read(), _archiveHandle::ClonePtr, closedir(), _archiveHandle::ClosePtr, dirent::d_name, lclContext::dataFH, _archiveHandle::DeClonePtr, lclContext::directory, _archiveHandle::EndBlobPtr, _archiveHandle::EndBlobsPtr, _archiveHandle::EndDataPtr, _archiveHandle::format, _archiveHandle::formatData, _archiveHandle::fSpec, _archiveHandle::lo_buf, _archiveHandle::lo_buf_size, LOBBUFSIZE, MAXPGPATH, mkdir, _archiveHandle::mode, opendir(), PG_BINARY_R, pg_fatal, pg_malloc(), 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::StartBlobPtr, _archiveHandle::StartBlobsPtr, _archiveHandle::StartDataPtr, stat, _archiveHandle::WorkerJobDumpPtr, _archiveHandle::WorkerJobRestorePtr, _archiveHandle::WriteBufPtr, _archiveHandle::WriteBytePtr, _archiveHandle::WriteDataPtr, and _archiveHandle::WriteExtraTocPtr.
Referenced by _allocAH().
|
static |
Definition at line 716 of file pg_backup_directory.c.
References buf, lclContext::directory, _archiveHandle::formatData, if(), MAXPGPATH, and pg_fatal.
Referenced by _CloseArchive(), _LoadBlobs(), _PrepParallelRestore(), _PrintTocData(), _StartBlobs(), _StartData(), and InitArchiveFmt_Directory().