PostgreSQL Source Code
git master
|
#include "postgres_fe.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 199 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 881 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 740 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 1003 of file pg_backup_custom.c.
References _ReadBuf(), buf, free, pg_malloc(), and ReadInt().
Referenced by _PrintData().
|
static |
Definition at line 988 of file pg_backup_custom.c.
References _WriteBuf(), buf, len, and WriteInt().
Referenced by _StartData(), and _StartLO().
|
static |
Definition at line 905 of file pg_backup_custom.c.
References _archiveHandle::formatData, and free.
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 329 of file pg_backup_custom.c.
References lclContext::cs, EndCompressor(), _archiveHandle::formatData, and WriteInt().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 391 of file pg_backup_custom.c.
References lclContext::cs, EndCompressor(), _archiveHandle::formatData, and WriteInt().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 406 of file pg_backup_custom.c.
References WriteInt().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 936 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 580 of file pg_backup_custom.c.
References _PrintData(), EndRestoreLO(), EndRestoreLOs(), ReadInt(), StartRestoreLO(), and StartRestoreLOs().
Referenced by _PrintTocData().
|
static |
Definition at line 829 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 569 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 265 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 416 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 956 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 718 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 686 of file pg_backup_custom.c.
References _archiveHandle::FH, READ_ERROR_EXIT, and res.
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 238 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 784 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 623 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 605 of file pg_backup_custom.c.
References _skipData(), and ReadInt().
Referenced by _PrintTocData().
|
static |
Definition at line 285 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 371 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 350 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 917 of file pg_backup_custom.c.
References parallel_restore().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 704 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 669 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 312 of file pg_backup_custom.c.
References lclContext::cs, data, _archiveHandle::formatData, and if().
Referenced by InitArchiveFmt_Custom().
|
static |
Definition at line 222 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 106 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().