PostgreSQL Source Code  git master
_archiveHandle Struct Reference

#include <pg_backup_archiver.h>

Data Fields

Archive public
 
int version
 
char * archiveRemoteVersion
 
char * archiveDumpVersion
 
size_t intSize
 
size_t offSize
 
ArchiveFormat format
 
sqlparseInfo sqlparse
 
time_t createDate
 
int readHeader
 
char * lookahead
 
size_t lookaheadSize
 
size_t lookaheadLen
 
size_t lookaheadPos
 
ArchiveEntryPtrType ArchiveEntryPtr
 
StartDataPtrType StartDataPtr
 
WriteDataPtrType WriteDataPtr
 
EndDataPtrType EndDataPtr
 
WriteBytePtrType WriteBytePtr
 
ReadBytePtrType ReadBytePtr
 
WriteBufPtrType WriteBufPtr
 
ReadBufPtrType ReadBufPtr
 
ClosePtrType ClosePtr
 
ReopenPtrType ReopenPtr
 
WriteExtraTocPtrType WriteExtraTocPtr
 
ReadExtraTocPtrType ReadExtraTocPtr
 
PrintExtraTocPtrType PrintExtraTocPtr
 
PrintTocDataPtrType PrintTocDataPtr
 
StartLOsPtrType StartLOsPtr
 
EndLOsPtrType EndLOsPtr
 
StartLOPtrType StartLOPtr
 
EndLOPtrType EndLOPtr
 
SetupWorkerPtrType SetupWorkerPtr
 
WorkerJobDumpPtrType WorkerJobDumpPtr
 
WorkerJobRestorePtrType WorkerJobRestorePtr
 
PrepParallelRestorePtrType PrepParallelRestorePtr
 
ClonePtrType ClonePtr
 
DeClonePtrType DeClonePtr
 
CustomOutPtrType CustomOutPtr
 
char * archdbname
 
char * savedPassword
 
char * use_role
 
PGconnconnection
 
PGcancel *volatile connCancel
 
int connectToDB
 
ArchiverOutput outputKind
 
bool pgCopyIn
 
int loFd
 
bool writingLO
 
int loCount
 
char * fSpec
 
FILE * FH
 
void * OF
 
struct _tocEntrytoc
 
int tocCount
 
DumpId maxDumpId
 
struct _tocEntry ** tocsByDumpId
 
DumpIdtableDataId
 
struct _tocEntrycurrToc
 
pg_compress_specification compression_spec
 
bool dosync
 
DataDirSyncMethod sync_method
 
ArchiveMode mode
 
void * formatData
 
char * currUser
 
char * currSchema
 
char * currTablespace
 
char * currTableAm
 
void * lo_buf
 
size_t lo_buf_used
 
size_t lo_buf_size
 
int noTocComments
 
ArchiverStage stage
 
ArchiverStage lastErrorStage
 
RestorePass restorePass
 
struct _tocEntrycurrentTE
 
struct _tocEntrylastErrorTE
 

Detailed Description

Definition at line 202 of file pg_backup_archiver.h.

Field Documentation

◆ archdbname

char* _archiveHandle::archdbname

Definition at line 274 of file pg_backup_archiver.h.

Referenced by PrintTOCSummary(), and ReadHead().

◆ archiveDumpVersion

char* _archiveHandle::archiveDumpVersion

Definition at line 209 of file pg_backup_archiver.h.

Referenced by _allocAH(), PrintTOCSummary(), ReadHead(), and RestoreArchive().

◆ ArchiveEntryPtr

ArchiveEntryPtrType _archiveHandle::ArchiveEntryPtr

◆ archiveRemoteVersion

char* _archiveHandle::archiveRemoteVersion

◆ ClonePtr

◆ ClosePtr

ClosePtrType _archiveHandle::ClosePtr

◆ compression_spec

◆ connCancel

PGcancel* volatile _archiveHandle::connCancel

◆ connection

◆ connectToDB

int _archiveHandle::connectToDB

Definition at line 281 of file pg_backup_archiver.h.

◆ createDate

time_t _archiveHandle::createDate

Definition at line 219 of file pg_backup_archiver.h.

Referenced by _allocAH(), PrintTOCSummary(), ReadHead(), RestoreArchive(), and WriteHead().

◆ currentTE

struct _tocEntry* _archiveHandle::currentTE

Definition at line 324 of file pg_backup_archiver.h.

Referenced by restore_toc_entry(), RestoreArchive(), and warn_or_exit_horribly().

◆ currSchema

◆ currTableAm

char* _archiveHandle::currTableAm

◆ currTablespace

char* _archiveHandle::currTablespace

◆ currToc

struct _tocEntry* _archiveHandle::currToc

◆ currUser

char* _archiveHandle::currUser

◆ CustomOutPtr

CustomOutPtrType _archiveHandle::CustomOutPtr

Definition at line 271 of file pg_backup_archiver.h.

Referenced by _CloseArchive(), and ahwrite().

◆ DeClonePtr

DeClonePtrType _archiveHandle::DeClonePtr

◆ dosync

bool _archiveHandle::dosync

Definition at line 305 of file pg_backup_archiver.h.

Referenced by _allocAH(), and _CloseArchive().

◆ EndDataPtr

◆ EndLOPtr

EndLOPtrType _archiveHandle::EndLOPtr

◆ EndLOsPtr

◆ FH

◆ format

◆ formatData

◆ fSpec

◆ intSize

size_t _archiveHandle::intSize

Definition at line 212 of file pg_backup_archiver.h.

Referenced by _allocAH(), PrintTOCSummary(), ReadHead(), ReadInt(), WriteHead(), and WriteInt().

◆ lastErrorStage

ArchiverStage _archiveHandle::lastErrorStage

Definition at line 322 of file pg_backup_archiver.h.

Referenced by warn_or_exit_horribly().

◆ lastErrorTE

struct _tocEntry* _archiveHandle::lastErrorTE

Definition at line 325 of file pg_backup_archiver.h.

Referenced by restore_toc_entry(), and warn_or_exit_horribly().

◆ lo_buf

void* _archiveHandle::lo_buf

◆ lo_buf_size

size_t _archiveHandle::lo_buf_size

◆ lo_buf_used

size_t _archiveHandle::lo_buf_used

Definition at line 317 of file pg_backup_archiver.h.

Referenced by ahwrite(), dump_lo_buf(), EndRestoreLO(), and StartRestoreLO().

◆ loCount

int _archiveHandle::loCount

Definition at line 288 of file pg_backup_archiver.h.

Referenced by EndRestoreLOs(), StartRestoreLO(), and StartRestoreLOs().

◆ loFd

int _archiveHandle::loFd

Definition at line 286 of file pg_backup_archiver.h.

Referenced by dump_lo_buf(), EndRestoreLO(), and StartRestoreLO().

◆ lookahead

char* _archiveHandle::lookahead

Definition at line 232 of file pg_backup_archiver.h.

Referenced by _discoverArchiveFormat(), and _tarReadRaw().

◆ lookaheadLen

size_t _archiveHandle::lookaheadLen

Definition at line 235 of file pg_backup_archiver.h.

Referenced by _discoverArchiveFormat(), and _tarReadRaw().

◆ lookaheadPos

size_t _archiveHandle::lookaheadPos

Definition at line 236 of file pg_backup_archiver.h.

Referenced by _discoverArchiveFormat(), and _tarReadRaw().

◆ lookaheadSize

size_t _archiveHandle::lookaheadSize

Definition at line 234 of file pg_backup_archiver.h.

Referenced by _discoverArchiveFormat().

◆ maxDumpId

DumpId _archiveHandle::maxDumpId

Definition at line 296 of file pg_backup_archiver.h.

Referenced by ArchiveEntry(), buildTocEntryArrays(), ReadToc(), and SortTocFromFile().

◆ mode

◆ noTocComments

int _archiveHandle::noTocComments

Definition at line 320 of file pg_backup_archiver.h.

Referenced by _printTocEntry(), and RestoreArchive().

◆ OF

void* _archiveHandle::OF

◆ offSize

size_t _archiveHandle::offSize

Definition at line 213 of file pg_backup_archiver.h.

Referenced by _allocAH(), PrintTOCSummary(), ReadHead(), ReadOffset(), and WriteHead().

◆ outputKind

ArchiverOutput _archiveHandle::outputKind

Definition at line 283 of file pg_backup_archiver.h.

Referenced by ExecuteSqlCommandBuf(), and restore_toc_entry().

◆ pgCopyIn

bool _archiveHandle::pgCopyIn

Definition at line 284 of file pg_backup_archiver.h.

Referenced by EndDBCopyMode(), ExecuteSqlCommand(), and ExecuteSqlCommandBuf().

◆ PrepParallelRestorePtr

PrepParallelRestorePtrType _archiveHandle::PrepParallelRestorePtr

◆ PrintExtraTocPtr

PrintExtraTocPtrType _archiveHandle::PrintExtraTocPtr

◆ PrintTocDataPtr

◆ public

◆ ReadBufPtr

ReadBufPtrType _archiveHandle::ReadBufPtr

◆ ReadBytePtr

ReadBytePtrType _archiveHandle::ReadBytePtr

◆ ReadExtraTocPtr

ReadExtraTocPtrType _archiveHandle::ReadExtraTocPtr

Definition at line 253 of file pg_backup_archiver.h.

Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), and ReadToc().

◆ readHeader

int _archiveHandle::readHeader

Definition at line 231 of file pg_backup_archiver.h.

Referenced by _discoverArchiveFormat(), and ReadHead().

◆ ReopenPtr

◆ restorePass

RestorePass _archiveHandle::restorePass

◆ savedPassword

char* _archiveHandle::savedPassword

Definition at line 275 of file pg_backup_archiver.h.

Referenced by CloneArchive(), ConnectDatabase(), and DeCloneArchive().

◆ SetupWorkerPtr

SetupWorkerPtrType _archiveHandle::SetupWorkerPtr

Definition at line 263 of file pg_backup_archiver.h.

Referenced by _allocAH(), and RunWorker().

◆ sqlparse

sqlparseInfo _archiveHandle::sqlparse

◆ stage

ArchiverStage _archiveHandle::stage

Definition at line 321 of file pg_backup_archiver.h.

Referenced by RestoreArchive(), and warn_or_exit_horribly().

◆ StartDataPtr

StartDataPtrType _archiveHandle::StartDataPtr

◆ StartLOPtr

StartLOPtrType _archiveHandle::StartLOPtr

◆ StartLOsPtr

◆ sync_method

DataDirSyncMethod _archiveHandle::sync_method

Definition at line 306 of file pg_backup_archiver.h.

Referenced by _allocAH(), and _CloseArchive().

◆ tableDataId

DumpId* _archiveHandle::tableDataId

◆ toc

◆ tocCount

int _archiveHandle::tocCount

◆ tocsByDumpId

◆ use_role

char* _archiveHandle::use_role

Definition at line 276 of file pg_backup_archiver.h.

◆ version

◆ WorkerJobDumpPtr

WorkerJobDumpPtrType _archiveHandle::WorkerJobDumpPtr

◆ WorkerJobRestorePtr

WorkerJobRestorePtrType _archiveHandle::WorkerJobRestorePtr

◆ WriteBufPtr

WriteBufPtrType _archiveHandle::WriteBufPtr

◆ WriteBytePtr

◆ WriteDataPtr

◆ WriteExtraTocPtr

WriteExtraTocPtrType _archiveHandle::WriteExtraTocPtr

Definition at line 250 of file pg_backup_archiver.h.

Referenced by InitArchiveFmt_Custom(), InitArchiveFmt_Directory(), and WriteToc().

◆ writingLO

bool _archiveHandle::writingLO

Definition at line 287 of file pg_backup_archiver.h.

Referenced by ahwrite(), dump_lo_buf(), EndRestoreLO(), and StartRestoreLO().


The documentation for this struct was generated from the following file: