PostgreSQL Source Code git master
|
#include "postgres_fe.h"
#include "common/file_utils.h"
#include "compress_io.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_custom.c.
References _tocEntry::dataDumper, lclTocEntry::dataState, _tocEntry::formatData, K_OFFSET_NO_DATA, K_OFFSET_POS_NOT_SET, and pg_malloc0().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 880 of file pg_backup_custom.c.
References lclContext::cs, _archiveHandle::formatData, if(), pg_fatal, and pg_malloc().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 739 of file pg_backup_custom.c.
References archModeWrite, _archiveHandle::dosync, _archiveHandle::FH, _archiveHandle::formatData, fseeko, _archiveHandle::fSpec, fsync_fname(), ftello, lclContext::hasSeek, if(), _archiveHandle::mode, pg_fatal, pgoff_t, WriteDataChunks(), WriteHead(), and WriteToc().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 1002 of file pg_backup_custom.c.
References _ReadBuf(), buf, free, pg_malloc(), and ReadInt().
Referenced by _PrintData().
|
static |
Definition at line 987 of file pg_backup_custom.c.
References _WriteBuf(), buf, len, and WriteInt().
Referenced by _StartData(), and _StartLO().
|
static |
Definition at line 904 of file pg_backup_custom.c.
References _archiveHandle::formatData, and free.
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 328 of file pg_backup_custom.c.
References lclContext::cs, EndCompressor(), _archiveHandle::formatData, and WriteInt().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 390 of file pg_backup_custom.c.
References lclContext::cs, EndCompressor(), _archiveHandle::formatData, and WriteInt().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 405 of file pg_backup_custom.c.
References WriteInt().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 935 of file pg_backup_custom.c.
References _archiveHandle::FH, ftello, lclContext::hasSeek, pg_fatal, and pgoff_t.
Referenced by _PrintTocData(), _StartData(), _StartLOs(), and InitArchiveFmt_Custom().
|
static |
Definition at line 579 of file pg_backup_custom.c.
References _PrintData(), EndRestoreLO(), EndRestoreLOs(), ReadInt(), StartRestoreLO(), and StartRestoreLOs().
Referenced by _PrintTocData().
|
static |
Definition at line 828 of file pg_backup_custom.c.
References lclTocEntry::dataPos, lclTocEntry::dataState, endpos, _archiveHandle::FH, for(), _archiveHandle::formatData, fseeko, ftello, lclContext::hasSeek, if(), K_OFFSET_POS_SET, _tocEntry::next, pg_fatal, pgoff_t, and _archiveHandle::toc.
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 568 of file pg_backup_custom.c.
References _CustomReadFunc(), AllocateCompressor(), _archiveHandle::compression_spec, EndCompressor(), and CompressorState::readData.
Referenced by _LoadLOs(), and _PrintTocData().
|
static |
Definition at line 264 of file pg_backup_custom.c.
References ahprintf(), lclTocEntry::dataPos, _tocEntry::formatData, if(), INT64_FORMAT, _archiveHandle::public, and Archive::verbose.
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 415 of file pg_backup_custom.c.
References _getFilePos(), _LoadLOs(), _PrintData(), _readBlockHeader(), _skipData(), _skipLOs(), BLK_BLOBS, BLK_DATA, lclTocEntry::dataPos, lclTocEntry::dataState, _restoreOptions::dropSchema, _tocEntry::dumpId, _archiveHandle::FH, _archiveHandle::formatData, _tocEntry::formatData, fseeko, getTocEntryByDumpId(), lclContext::hasSeek, if(), K_OFFSET_NO_DATA, K_OFFSET_POS_NOT_SET, K_OFFSET_POS_SET, lclContext::lastFilePos, pg_fatal, pg_log_warning, pgoff_t, _archiveHandle::public, and Archive::ropt.
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 955 of file pg_backup_custom.c.
References BLK_DATA, _archiveHandle::FH, K_VERS_1_3, ReadInt(), type, and _archiveHandle::version.
Referenced by _PrintTocData().
|
static |
Definition at line 717 of file pg_backup_custom.c.
References buf, _archiveHandle::FH, len, and READ_ERROR_EXIT.
Referenced by _CustomReadFunc(), and InitArchiveFmt_Custom().
|
static |
Definition at line 685 of file pg_backup_custom.c.
References _archiveHandle::FH, READ_ERROR_EXIT, and res.
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 237 of file pg_backup_custom.c.
References lclTocEntry::dataPos, lclTocEntry::dataState, _tocEntry::formatData, if(), K_VERS_1_7, pg_malloc0(), ReadInt(), ReadOffset(), and _archiveHandle::version.
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 783 of file pg_backup_custom.c.
References archModeWrite, _archiveHandle::FH, _archiveHandle::formatData, fseeko, _archiveHandle::fSpec, ftello, lclContext::hasSeek, if(), _archiveHandle::mode, PG_BINARY_R, pg_fatal, and pgoff_t.
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 622 of file pg_backup_custom.c.
References buf, _archiveHandle::FH, _archiveHandle::formatData, free, fseeko, lclContext::hasSeek, pg_fatal, pg_malloc(), and ReadInt().
Referenced by _PrintTocData(), and _skipLOs().
|
static |
Definition at line 604 of file pg_backup_custom.c.
References _skipData(), and ReadInt().
Referenced by _PrintTocData().
|
static |
Definition at line 284 of file pg_backup_custom.c.
References _CustomWriteFunc(), _getFilePos(), _WriteByte(), AllocateCompressor(), BLK_DATA, _archiveHandle::compression_spec, lclContext::cs, _tocEntry::dumpId, _archiveHandle::formatData, _tocEntry::formatData, K_OFFSET_POS_SET, and WriteInt().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 370 of file pg_backup_custom.c.
References _CustomWriteFunc(), AllocateCompressor(), _archiveHandle::compression_spec, lclContext::cs, _archiveHandle::formatData, if(), pg_fatal, and WriteInt().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 349 of file pg_backup_custom.c.
References _getFilePos(), _WriteByte(), BLK_BLOBS, _tocEntry::dumpId, _archiveHandle::formatData, _tocEntry::formatData, K_OFFSET_POS_SET, and WriteInt().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 916 of file pg_backup_custom.c.
References parallel_restore().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 703 of file pg_backup_custom.c.
References buf, _archiveHandle::FH, len, and WRITE_ERROR_EXIT.
Referenced by _CustomWriteFunc(), and InitArchiveFmt_Custom().
|
static |
Definition at line 668 of file pg_backup_custom.c.
References _archiveHandle::FH, i, and WRITE_ERROR_EXIT.
Referenced by _StartData(), _StartLOs(), and InitArchiveFmt_Custom().
|
static |
Definition at line 311 of file pg_backup_custom.c.
References lclContext::cs, data, _archiveHandle::formatData, and if().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 221 of file pg_backup_custom.c.
References lclTocEntry::dataPos, lclTocEntry::dataState, _tocEntry::formatData, and WriteOffset().
Referenced by InitArchiveFmt_Custom().
void InitArchiveFmt_Custom | ( | ArchiveHandle * | AH | ) |
Definition at line 105 of file pg_backup_custom.c.
References _ArchiveEntry(), _Clone(), _CloseArchive(), _DeClone(), _EndData(), _EndLO(), _EndLOs(), _getFilePos(), _PrepParallelRestore(), _PrintExtraToc(), _PrintTocData(), _ReadBuf(), _ReadByte(), _ReadExtraToc(), _ReopenArchive(), _StartData(), _StartLO(), _StartLOs(), _WorkerJobRestoreCustom(), _WriteBuf(), _WriteByte(), _WriteData(), _WriteExtraToc(), _archiveHandle::ArchiveEntryPtr, archModeWrite, checkSeek(), _archiveHandle::ClonePtr, _archiveHandle::ClosePtr, _archiveHandle::DeClonePtr, _archiveHandle::EndDataPtr, _archiveHandle::EndLOPtr, _archiveHandle::EndLOsPtr, _archiveHandle::FH, _archiveHandle::formatData, _archiveHandle::fSpec, lclContext::hasSeek, lclContext::lastFilePos, _archiveHandle::mode, PG_BINARY_R, PG_BINARY_W, pg_fatal, pg_malloc0(), _archiveHandle::PrepParallelRestorePtr, _archiveHandle::PrintExtraTocPtr, _archiveHandle::PrintTocDataPtr, _archiveHandle::ReadBufPtr, _archiveHandle::ReadBytePtr, _archiveHandle::ReadExtraTocPtr, ReadHead(), ReadToc(), _archiveHandle::ReopenPtr, _archiveHandle::StartDataPtr, _archiveHandle::StartLOPtr, _archiveHandle::StartLOsPtr, generate_unaccent_rules::stdout, _archiveHandle::WorkerJobDumpPtr, _archiveHandle::WorkerJobRestorePtr, _archiveHandle::WriteBufPtr, _archiveHandle::WriteBytePtr, _archiveHandle::WriteDataPtr, and _archiveHandle::WriteExtraTocPtr.
Referenced by _allocAH().