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
 
pgoff_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
 
StartBlobsPtrType StartBlobsPtr
 
EndBlobsPtrType EndBlobsPtr
 
StartBlobPtrType StartBlobPtr
 
EndBlobPtrType EndBlobPtr
 
SetupWorkerPtrType SetupWorkerPtr
 
WorkerJobDumpPtrType WorkerJobDumpPtr
 
WorkerJobRestorePtrType WorkerJobRestorePtr
 
PrepParallelRestorePtrType PrepParallelRestorePtr
 
ClonePtrType ClonePtr
 
DeClonePtrType DeClonePtr
 
CustomOutPtrType CustomOutPtr
 
char * archdbname
 
trivalue promptPassword
 
char * savedPassword
 
char * use_role
 
PGconnconnection
 
PGcancel *volatile connCancel
 
int connectToDB
 
ArchiverOutput outputKind
 
bool pgCopyIn
 
int loFd
 
int writingBlob
 
int blobCount
 
char * fSpec
 
FILE * FH
 
void * OF
 
int gzOut
 
struct _tocEntrytoc
 
int tocCount
 
DumpId maxDumpId
 
struct _tocEntry ** tocsByDumpId
 
DumpIdtableDataId
 
struct _tocEntrycurrToc
 
int compression
 
bool dosync
 
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 237 of file pg_backup_archiver.h.

Field Documentation

◆ archdbname

char* _archiveHandle::archdbname

Definition at line 303 of file pg_backup_archiver.h.

Referenced by PrintTOCSummary(), and ReadHead().

◆ archiveDumpVersion

char* _archiveHandle::archiveDumpVersion

Definition at line 244 of file pg_backup_archiver.h.

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

◆ ArchiveEntryPtr

ArchiveEntryPtrType _archiveHandle::ArchiveEntryPtr

◆ archiveRemoteVersion

char* _archiveHandle::archiveRemoteVersion

◆ blobCount

int _archiveHandle::blobCount

Definition at line 318 of file pg_backup_archiver.h.

Referenced by EndRestoreBlobs(), StartRestoreBlob(), and StartRestoreBlobs().

◆ ClonePtr

◆ ClosePtr

ClosePtrType _archiveHandle::ClosePtr

◆ compression

◆ connCancel

◆ connection

◆ connectToDB

int _archiveHandle::connectToDB

Definition at line 311 of file pg_backup_archiver.h.

◆ createDate

time_t _archiveHandle::createDate

Definition at line 254 of file pg_backup_archiver.h.

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

◆ currentTE

struct _tocEntry* _archiveHandle::currentTE

Definition at line 356 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 300 of file pg_backup_archiver.h.

Referenced by _CloseArchive(), and ahwrite().

◆ DeClonePtr

DeClonePtrType _archiveHandle::DeClonePtr

◆ dosync

bool _archiveHandle::dosync

Definition at line 338 of file pg_backup_archiver.h.

Referenced by _allocAH(), and _CloseArchive().

◆ EndBlobPtr

EndBlobPtrType _archiveHandle::EndBlobPtr

◆ EndBlobsPtr

◆ EndDataPtr

◆ FH

◆ format

◆ formatData

◆ fSpec

◆ gzOut

int _archiveHandle::gzOut

◆ intSize

size_t _archiveHandle::intSize

◆ lastErrorStage

ArchiverStage _archiveHandle::lastErrorStage

Definition at line 354 of file pg_backup_archiver.h.

Referenced by warn_or_exit_horribly().

◆ lastErrorTE

struct _tocEntry* _archiveHandle::lastErrorTE

Definition at line 357 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 349 of file pg_backup_archiver.h.

Referenced by ahwrite(), dump_lo_buf(), EndRestoreBlob(), and StartRestoreBlob().

◆ loFd

int _archiveHandle::loFd

Definition at line 316 of file pg_backup_archiver.h.

Referenced by dump_lo_buf(), EndRestoreBlob(), and StartRestoreBlob().

◆ lookahead

char* _archiveHandle::lookahead

Definition at line 261 of file pg_backup_archiver.h.

Referenced by _discoverArchiveFormat(), and _tarReadRaw().

◆ lookaheadLen

size_t _archiveHandle::lookaheadLen

Definition at line 264 of file pg_backup_archiver.h.

Referenced by _discoverArchiveFormat(), and _tarReadRaw().

◆ lookaheadPos

pgoff_t _archiveHandle::lookaheadPos

Definition at line 265 of file pg_backup_archiver.h.

Referenced by _discoverArchiveFormat(), and _tarReadRaw().

◆ lookaheadSize

size_t _archiveHandle::lookaheadSize

Definition at line 263 of file pg_backup_archiver.h.

Referenced by _discoverArchiveFormat().

◆ maxDumpId

DumpId _archiveHandle::maxDumpId

Definition at line 327 of file pg_backup_archiver.h.

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

◆ mode

◆ noTocComments

int _archiveHandle::noTocComments

Definition at line 352 of file pg_backup_archiver.h.

Referenced by _printTocEntry(), and RestoreArchive().

◆ OF

void* _archiveHandle::OF

◆ offSize

size_t _archiveHandle::offSize

◆ outputKind

ArchiverOutput _archiveHandle::outputKind

Definition at line 313 of file pg_backup_archiver.h.

Referenced by ExecuteSqlCommandBuf(), and restore_toc_entry().

◆ pgCopyIn

bool _archiveHandle::pgCopyIn

Definition at line 314 of file pg_backup_archiver.h.

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

◆ PrepParallelRestorePtr

PrepParallelRestorePtrType _archiveHandle::PrepParallelRestorePtr

◆ PrintExtraTocPtr

PrintExtraTocPtrType _archiveHandle::PrintExtraTocPtr

◆ PrintTocDataPtr

◆ promptPassword

trivalue _archiveHandle::promptPassword

Definition at line 304 of file pg_backup_archiver.h.

Referenced by _allocAH(), _connectDB(), and ConnectDatabase().

◆ public

◆ ReadBufPtr

ReadBufPtrType _archiveHandle::ReadBufPtr

◆ ReadBytePtr

ReadBytePtrType _archiveHandle::ReadBytePtr

◆ ReadExtraTocPtr

ReadExtraTocPtrType _archiveHandle::ReadExtraTocPtr

Definition at line 282 of file pg_backup_archiver.h.

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

◆ readHeader

int _archiveHandle::readHeader

Definition at line 260 of file pg_backup_archiver.h.

Referenced by _discoverArchiveFormat(), and ReadHead().

◆ ReopenPtr

◆ restorePass

RestorePass _archiveHandle::restorePass

◆ savedPassword

char* _archiveHandle::savedPassword

Definition at line 305 of file pg_backup_archiver.h.

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

◆ SetupWorkerPtr

SetupWorkerPtrType _archiveHandle::SetupWorkerPtr

Definition at line 292 of file pg_backup_archiver.h.

Referenced by _allocAH(), and RunWorker().

◆ sqlparse

sqlparseInfo _archiveHandle::sqlparse

◆ stage

ArchiverStage _archiveHandle::stage

Definition at line 353 of file pg_backup_archiver.h.

Referenced by RestoreArchive(), and warn_or_exit_horribly().

◆ StartBlobPtr

StartBlobPtrType _archiveHandle::StartBlobPtr

◆ StartBlobsPtr

◆ StartDataPtr

StartDataPtrType _archiveHandle::StartDataPtr

◆ tableDataId

DumpId* _archiveHandle::tableDataId

◆ toc

◆ tocCount

int _archiveHandle::tocCount

◆ tocsByDumpId

◆ use_role

char* _archiveHandle::use_role

Definition at line 306 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 279 of file pg_backup_archiver.h.

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

◆ writingBlob

int _archiveHandle::writingBlob

Definition at line 317 of file pg_backup_archiver.h.

Referenced by ahwrite(), dump_lo_buf(), EndRestoreBlob(), and StartRestoreBlob().


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