PostgreSQL Source Code
git master
|
#include <pg_backup_archiver.h>
Definition at line 203 of file pg_backup_archiver.h.
char* _archiveHandle::archdbname |
Definition at line 275 of file pg_backup_archiver.h.
Referenced by PrintTOCSummary(), and ReadHead().
char* _archiveHandle::archiveDumpVersion |
Definition at line 210 of file pg_backup_archiver.h.
Referenced by _allocAH(), PrintTOCSummary(), ReadHead(), and RestoreArchive().
ArchiveEntryPtrType _archiveHandle::ArchiveEntryPtr |
Definition at line 239 of file pg_backup_archiver.h.
Referenced by ArchiveEntry(), InitArchiveFmt_Custom(), and InitArchiveFmt_Directory().
char* _archiveHandle::archiveRemoteVersion |
Definition at line 208 of file pg_backup_archiver.h.
Referenced by _check_database_version(), PrintTOCSummary(), ReadHead(), and RestoreArchive().
ClonePtrType _archiveHandle::ClonePtr |
Definition at line 269 of file pg_backup_archiver.h.
Referenced by CloneArchive(), InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), InitArchiveFmt_Null(), and RestoreArchive().
ClosePtrType _archiveHandle::ClosePtr |
Definition at line 249 of file pg_backup_archiver.h.
Referenced by CloseArchive(), InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), and InitArchiveFmt_Null().
pg_compress_specification _archiveHandle::compression_spec |
Definition at line 304 of file pg_backup_archiver.h.
Referenced by _allocAH(), _PrepParallelRestore(), _PrintData(), _StartData(), _StartLO(), PrintTOCSummary(), ReadHead(), RestoreArchive(), tarClose(), tarOpen(), and WriteHead().
PGcancel* volatile _archiveHandle::connCancel |
Definition at line 280 of file pg_backup_archiver.h.
Referenced by CloneArchive(), DisconnectDatabase(), set_archive_cancel_info(), ShutdownWorkersHard(), and sigTermHandler().
PGconn* _archiveHandle::connection |
Definition at line 278 of file pg_backup_archiver.h.
Referenced by _check_database_version(), _doSetFixedOutputState(), _doSetSessionAuth(), _printTableAccessMethodNoStorage(), _selectOutputSchema(), _selectTableAccessMethod(), _selectTablespace(), CloneArchive(), ConnectDatabase(), DeCloneArchive(), die_on_query_failure(), DisconnectDatabase(), dump_lo_buf(), EndDBCopyMode(), EndRestoreLO(), EndRestoreLOs(), ExecuteSqlCommand(), ExecuteSqlCommandBuf(), ExecuteSqlQuery(), ExecuteSqlStatement(), GetConnection(), is_superuser(), IssueCommandPerBlob(), lockTableForWorker(), parallel_restore(), ParallelBackupStart(), ReconnectToServer(), restore_toc_entry(), RestoreArchive(), RestoringToDB(), StartRestoreLO(), StartRestoreLOs(), and WriteHead().
int _archiveHandle::connectToDB |
Definition at line 282 of file pg_backup_archiver.h.
time_t _archiveHandle::createDate |
Definition at line 220 of file pg_backup_archiver.h.
Referenced by _allocAH(), PrintTOCSummary(), ReadHead(), RestoreArchive(), and WriteHead().
struct _tocEntry* _archiveHandle::currentTE |
Definition at line 328 of file pg_backup_archiver.h.
Referenced by restore_toc_entry(), RestoreArchive(), and warn_or_exit_horribly().
char* _archiveHandle::currSchema |
Definition at line 313 of file pg_backup_archiver.h.
Referenced by _allocAH(), _reconnectToDB(), _selectOutputSchema(), CloneArchive(), DeCloneArchive(), restore_toc_entries_prefork(), and RestoreArchive().
char* _archiveHandle::currTableAm |
Definition at line 315 of file pg_backup_archiver.h.
Referenced by _allocAH(), _reconnectToDB(), _selectTableAccessMethod(), CloneArchive(), DeCloneArchive(), and restore_toc_entries_prefork().
char* _archiveHandle::currTablespace |
Definition at line 314 of file pg_backup_archiver.h.
Referenced by _allocAH(), _reconnectToDB(), _selectTablespace(), CloneArchive(), DeCloneArchive(), and restore_toc_entries_prefork().
struct _tocEntry* _archiveHandle::currToc |
Definition at line 303 of file pg_backup_archiver.h.
Referenced by _PrintTocData(), _WriteData(), EndLO(), StartLO(), WriteData(), and WriteDataChunksForTocEntry().
char* _archiveHandle::currUser |
Definition at line 312 of file pg_backup_archiver.h.
Referenced by _allocAH(), _becomeUser(), _printTocEntry(), _reconnectToDB(), CloneArchive(), DeCloneArchive(), and restore_toc_entries_prefork().
CustomOutPtrType _archiveHandle::CustomOutPtr |
Definition at line 272 of file pg_backup_archiver.h.
Referenced by _CloseArchive(), and ahwrite().
DeClonePtrType _archiveHandle::DeClonePtr |
Definition at line 270 of file pg_backup_archiver.h.
Referenced by DeCloneArchive(), InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), and InitArchiveFmt_Null().
bool _archiveHandle::dosync |
Definition at line 306 of file pg_backup_archiver.h.
Referenced by _allocAH(), and _CloseArchive().
EndDataPtrType _archiveHandle::EndDataPtr |
Definition at line 244 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), InitArchiveFmt_Null(), and WriteDataChunksForTocEntry().
EndLOPtrType _archiveHandle::EndLOPtr |
Definition at line 262 of file pg_backup_archiver.h.
Referenced by EndLO(), InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), and InitArchiveFmt_Null().
EndLOsPtrType _archiveHandle::EndLOsPtr |
Definition at line 260 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), InitArchiveFmt_Null(), and WriteDataChunksForTocEntry().
FILE* _archiveHandle::FH |
Definition at line 292 of file pg_backup_archiver.h.
Referenced by _CloseArchive(), _getFilePos(), _PrepParallelRestore(), _PrintTocData(), _readBlockHeader(), _ReadBuf(), _ReadByte(), _ReopenArchive(), _skipData(), _WriteBuf(), _WriteByte(), InitArchiveFmt_Custom(), and SetOutput().
ArchiveFormat _archiveHandle::format |
Definition at line 216 of file pg_backup_archiver.h.
Referenced by _allocAH(), _CloseArchive(), _discoverArchiveFormat(), InitArchiveFmt_Directory(), PrintTOCSummary(), ReadHead(), and WriteHead().
void* _archiveHandle::formatData |
Definition at line 309 of file pg_backup_archiver.h.
Referenced by _Clone(), _CloseArchive(), _DeClone(), _EndData(), _EndLO(), _EndLOs(), _LoadLOs(), _PrepParallelRestore(), _PrintFileData(), _PrintTocData(), _ReadBuf(), _ReadByte(), _ReopenArchive(), _scriptOut(), _skipData(), _StartData(), _StartLO(), _StartLOs(), _tarAddFile(), _tarGetHeader(), _tarPositionTo(), _tarReadRaw(), _WriteBuf(), _WriteByte(), _WriteData(), InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), setFilePath(), and tarOpen().
char* _archiveHandle::fSpec |
Definition at line 291 of file pg_backup_archiver.h.
Referenced by _allocAH(), _CloseArchive(), _discoverArchiveFormat(), _ReopenArchive(), InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), and SetOutput().
size_t _archiveHandle::intSize |
Definition at line 213 of file pg_backup_archiver.h.
Referenced by _allocAH(), PrintTOCSummary(), ReadHead(), ReadInt(), WriteHead(), and WriteInt().
ArchiverStage _archiveHandle::lastErrorStage |
Definition at line 326 of file pg_backup_archiver.h.
Referenced by warn_or_exit_horribly().
struct _tocEntry* _archiveHandle::lastErrorTE |
Definition at line 329 of file pg_backup_archiver.h.
Referenced by restore_toc_entry(), and warn_or_exit_horribly().
void* _archiveHandle::lo_buf |
Definition at line 320 of file pg_backup_archiver.h.
Referenced by ahwrite(), CloneArchive(), dump_lo_buf(), and StartRestoreLO().
size_t _archiveHandle::lo_buf_size |
Definition at line 322 of file pg_backup_archiver.h.
Referenced by ahwrite(), and StartRestoreLO().
size_t _archiveHandle::lo_buf_used |
Definition at line 321 of file pg_backup_archiver.h.
Referenced by ahwrite(), dump_lo_buf(), EndRestoreLO(), and StartRestoreLO().
int _archiveHandle::loCount |
Definition at line 289 of file pg_backup_archiver.h.
Referenced by EndRestoreLOs(), StartRestoreLO(), and StartRestoreLOs().
int _archiveHandle::loFd |
Definition at line 287 of file pg_backup_archiver.h.
Referenced by dump_lo_buf(), EndRestoreLO(), and StartRestoreLO().
char* _archiveHandle::lookahead |
Definition at line 233 of file pg_backup_archiver.h.
Referenced by _discoverArchiveFormat(), and _tarReadRaw().
size_t _archiveHandle::lookaheadLen |
Definition at line 236 of file pg_backup_archiver.h.
Referenced by _discoverArchiveFormat(), and _tarReadRaw().
size_t _archiveHandle::lookaheadPos |
Definition at line 237 of file pg_backup_archiver.h.
Referenced by _discoverArchiveFormat(), and _tarReadRaw().
size_t _archiveHandle::lookaheadSize |
Definition at line 235 of file pg_backup_archiver.h.
Referenced by _discoverArchiveFormat().
DumpId _archiveHandle::maxDumpId |
Definition at line 297 of file pg_backup_archiver.h.
Referenced by ArchiveEntry(), buildTocEntryArrays(), ReadToc(), and SortTocFromFile().
ArchiveMode _archiveHandle::mode |
Definition at line 308 of file pg_backup_archiver.h.
Referenced by _allocAH(), _CloseArchive(), _ReopenArchive(), CloneArchive(), InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), InitArchiveFmt_Null(), ProcessArchiveRestoreOptions(), and SetOutput().
int _archiveHandle::noTocComments |
Definition at line 324 of file pg_backup_archiver.h.
Referenced by _printTocEntry(), and RestoreArchive().
void* _archiveHandle::OF |
Definition at line 293 of file pg_backup_archiver.h.
Referenced by _allocAH(), ahwrite(), CloseArchive(), RestoreOutput(), SaveOutput(), and SetOutput().
size_t _archiveHandle::offSize |
Definition at line 214 of file pg_backup_archiver.h.
Referenced by _allocAH(), PrintTOCSummary(), ReadHead(), ReadOffset(), and WriteHead().
ArchiverOutput _archiveHandle::outputKind |
Definition at line 284 of file pg_backup_archiver.h.
Referenced by ExecuteSqlCommandBuf(), and restore_toc_entry().
bool _archiveHandle::pgCopyIn |
Definition at line 285 of file pg_backup_archiver.h.
Referenced by EndDBCopyMode(), ExecuteSqlCommand(), and ExecuteSqlCommandBuf().
PrepParallelRestorePtrType _archiveHandle::PrepParallelRestorePtr |
Definition at line 268 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), and RestoreArchive().
PrintExtraTocPtrType _archiveHandle::PrintExtraTocPtr |
Definition at line 256 of file pg_backup_archiver.h.
Referenced by _printTocEntry(), InitArchiveFmt_Custom(), and InitArchiveFmt_Directory().
PrintTocDataPtrType _archiveHandle::PrintTocDataPtr |
Definition at line 257 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), InitArchiveFmt_Null(), restore_toc_entry(), and RestoreArchive().
Archive _archiveHandle::public |
Definition at line 205 of file pg_backup_archiver.h.
Referenced by _allocAH(), _becomeOwner(), _check_database_version(), _CloseArchive(), _disableTriggersIfNecessary(), _doSetFixedOutputState(), _enableTriggersIfNecessary(), _LoadLOs(), _PrintExtraToc(), _printTableAccessMethodNoStorage(), _PrintTocData(), _printTocEntry(), _selectOutputSchema(), _selectTableAccessMethod(), _selectTablespace(), _StartLO(), _tocEntryRequired(), ahwrite(), archive_close_connection(), buildWorkerResponse(), CloneArchive(), EndRestoreLOs(), ExecuteSimpleCommands(), IssueCommandPerBlob(), mark_restore_job_done(), parallel_restore(), ParallelBackupStart(), parseWorkerResponse(), PrintTOCSummary(), ProcessArchiveRestoreOptions(), processEncodingEntry(), processSearchPathEntry(), processStdStringsEntry(), ReconnectToServer(), restore_toc_entries_postfork(), restore_toc_entries_prefork(), restore_toc_entry(), RestoreArchive(), RestoringToDB(), RunWorker(), SortTocFromFile(), StartRestoreLOs(), warn_or_exit_horribly(), and WriteHead().
ReadBufPtrType _archiveHandle::ReadBufPtr |
Definition at line 248 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), ReadHead(), and ReadStr().
ReadBytePtrType _archiveHandle::ReadBytePtr |
Definition at line 246 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), ReadHead(), ReadInt(), and ReadOffset().
ReadExtraTocPtrType _archiveHandle::ReadExtraTocPtr |
Definition at line 254 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), and ReadToc().
int _archiveHandle::readHeader |
Definition at line 232 of file pg_backup_archiver.h.
Referenced by _discoverArchiveFormat(), and ReadHead().
ReopenPtrType _archiveHandle::ReopenPtr |
Definition at line 250 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), InitArchiveFmt_Null(), RestoreArchive(), and setupRestoreWorker().
RestorePass _archiveHandle::restorePass |
Definition at line 327 of file pg_backup_archiver.h.
Referenced by reduce_dependencies(), restore_toc_entries_parallel(), and restore_toc_entries_prefork().
char* _archiveHandle::savedPassword |
Definition at line 276 of file pg_backup_archiver.h.
Referenced by CloneArchive(), ConnectDatabase(), and DeCloneArchive().
SetupWorkerPtrType _archiveHandle::SetupWorkerPtr |
Definition at line 264 of file pg_backup_archiver.h.
Referenced by _allocAH(), and RunWorker().
sqlparseInfo _archiveHandle::sqlparse |
Definition at line 218 of file pg_backup_archiver.h.
Referenced by _allocAH(), CloneArchive(), DeCloneArchive(), and ExecuteSimpleCommands().
ArchiverStage _archiveHandle::stage |
Definition at line 325 of file pg_backup_archiver.h.
Referenced by RestoreArchive(), and warn_or_exit_horribly().
StartDataPtrType _archiveHandle::StartDataPtr |
Definition at line 240 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), and WriteDataChunksForTocEntry().
StartLOPtrType _archiveHandle::StartLOPtr |
Definition at line 261 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), InitArchiveFmt_Null(), and StartLO().
StartLOsPtrType _archiveHandle::StartLOsPtr |
Definition at line 259 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), InitArchiveFmt_Null(), and WriteDataChunksForTocEntry().
DataDirSyncMethod _archiveHandle::sync_method |
Definition at line 307 of file pg_backup_archiver.h.
Referenced by _allocAH(), and _CloseArchive().
DumpId* _archiveHandle::tableDataId |
Definition at line 301 of file pg_backup_archiver.h.
Referenced by buildTocEntryArrays(), inhibit_data_for_failed_table(), mark_create_done(), and repoint_table_dependencies().
struct _tocEntry* _archiveHandle::toc |
Definition at line 295 of file pg_backup_archiver.h.
Referenced by _allocAH(), _PrepParallelRestore(), ArchiveEntry(), BuildArchiveDependencies(), buildTocEntryArrays(), fix_dependencies(), PrintTOCSummary(), ProcessArchiveRestoreOptions(), ReadToc(), repoint_table_dependencies(), restore_toc_entries_prefork(), RestoreArchive(), SortTocFromFile(), WriteDataChunks(), and WriteToc().
int _archiveHandle::tocCount |
Definition at line 296 of file pg_backup_archiver.h.
Referenced by ArchiveEntry(), PrintTOCSummary(), ReadToc(), restore_toc_entries_parallel(), and WriteDataChunks().
struct _tocEntry** _archiveHandle::tocsByDumpId |
Definition at line 300 of file pg_backup_archiver.h.
Referenced by buildTocEntryArrays(), fix_dependencies(), getTocEntryByDumpId(), identify_locking_dependencies(), inhibit_data_for_failed_table(), mark_create_done(), reduce_dependencies(), repoint_table_dependencies(), and RestoreArchive().
int _archiveHandle::txnCount |
Definition at line 318 of file pg_backup_archiver.h.
Referenced by _doSetFixedOutputState(), _printTocEntry(), IssueCommandPerBlob(), restore_toc_entry(), and RestoreArchive().
char* _archiveHandle::use_role |
Definition at line 277 of file pg_backup_archiver.h.
int _archiveHandle::version |
Definition at line 206 of file pg_backup_archiver.h.
Referenced by _allocAH(), _LoadLOs(), _readBlockHeader(), _ReadExtraToc(), _StartLO(), fix_dependencies(), PrintTOCSummary(), ReadHead(), ReadInt(), ReadOffset(), ReadToc(), RestoreArchive(), StartRestoreLO(), and WriteHead().
WorkerJobDumpPtrType _archiveHandle::WorkerJobDumpPtr |
Definition at line 265 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), and WaitForCommands().
WorkerJobRestorePtrType _archiveHandle::WorkerJobRestorePtr |
Definition at line 266 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), and WaitForCommands().
WriteBufPtrType _archiveHandle::WriteBufPtr |
Definition at line 247 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), InitArchiveFmt_Null(), WriteHead(), and WriteStr().
WriteBytePtrType _archiveHandle::WriteBytePtr |
Definition at line 245 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), InitArchiveFmt_Null(), WriteHead(), WriteInt(), and WriteOffset().
WriteDataPtrType _archiveHandle::WriteDataPtr |
Definition at line 242 of file pg_backup_archiver.h.
Referenced by _EndLO(), _StartLO(), InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), InitArchiveFmt_Null(), and WriteData().
WriteExtraTocPtrType _archiveHandle::WriteExtraTocPtr |
Definition at line 251 of file pg_backup_archiver.h.
Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), and WriteToc().
bool _archiveHandle::writingLO |
Definition at line 288 of file pg_backup_archiver.h.
Referenced by ahwrite(), dump_lo_buf(), EndRestoreLO(), and StartRestoreLO().