33#include "catalog/pg_class_d.h"
34#include "catalog/pg_largeobject_metadata_d.h"
35#include "catalog/pg_shdepend_d.h"
48#define TEXT_DUMP_HEADER "--\n-- PostgreSQL database dump\n--\n\n"
49#define TEXT_DUMPALL_HEADER "--\n-- PostgreSQL database cluster dump\n--\n\n"
51#define TOC_PREFIX_NONE ""
52#define TOC_PREFIX_DATA "Data for "
53#define TOC_PREFIX_STATS "Statistics for "
114 void *callback_data);
118 void *callback_data);
151 opts->include_everything =
true;
154 opts->dumpSchema =
true;
155 opts->dumpData =
true;
156 opts->dumpStatistics =
false;
271 pg_fatal(
"could not close output file: %m");
325 pg_fatal(
"unexpected section code %d",
362 pg_fatal(
"parallel restore is not supported with this archive file format");
366 pg_fatal(
"parallel restore is not supported with archives made by pre-8.0 pg_dump");
387 pg_fatal(
"cannot restore from compressed archive (%s)",
409 pg_fatal(
"direct database connections are not supported in pre-1.3 archives");
463 ahprintf(AH,
"--\n-- PostgreSQL database dump\n--\n\n");
477 ahprintf(AH,
"-- Dumped from database version %s\n",
480 ahprintf(AH,
"-- Dumped by pg_dump version %s\n",
565 "SELECT pg_catalog.lo_unlink(oid) "
566 "FROM pg_catalog.pg_largeobject_metadata "
567 "WHERE oid = '",
"'");
570 "SELECT pg_catalog.lo_unlink('",
608 if (
strncmp(dropStmt,
"ALTER TABLE", 11) == 0)
611 "ALTER TABLE IF EXISTS");
612 dropStmt = dropStmt + 11;
635 strcmp(te->
desc,
"DATABASE PROPERTIES") == 0 ||
636 strncmp(dropStmt,
"CREATE OR REPLACE VIEW", 22) == 0)
646 strcpy(buffer,
"DROP CONSTRAINT");
648 snprintf(buffer,
sizeof(buffer),
"DROP %s",
663 pg_log_warning(
"could not find where to insert IF EXISTS in statement \"%s\"",
814 ahprintf(AH,
"--\n-- PostgreSQL database dump complete\n--\n\n");
894 te->
desc, te->namespace, te->
tag);
996 te->namespace, te->
tag);
1029 ahprintf(AH,
"TRUNCATE TABLE ONLY %s;\n\n",
1090 ahprintf(AH,
"COMMIT;\nBEGIN;\n\n");
1117 opts->compression_spec.level = 0;
1118 opts->dumpSchema =
true;
1119 opts->dumpData =
true;
1120 opts->dumpStatistics =
true;
1147 ahprintf(AH,
"ALTER TABLE %s DISABLE TRIGGER ALL;\n\n",
1173 ahprintf(AH,
"ALTER TABLE %s ENABLE TRIGGER ALL;\n\n",
1192 strncmp(te->
defn,
"-- load via partition root ", 27) == 0)
1225 pg_fatal(
"internal error -- WriteData cannot be called outside the context of a DataDumper routine");
1273 if (
opts->nDeps > 0)
1326 ahprintf(AH,
"; dbname: %s\n; TOC Entries: %d\n; Compression: %s\n",
1346 ahprintf(AH,
"; Dump Version: %d.%d-%d\n",
1352 ahprintf(AH,
"; Dumped from database version: %s\n",
1355 ahprintf(AH,
"; Dumped by pg_dump version: %s\n",
1358 ahprintf(AH,
";\n;\n; Selected TOC Entries:\n;\n");
1420 pg_fatal(
"large-object output not supported in chosen format");
1484 "restored %d large objects",
1510 pg_log_info(
"restoring large object with OID %u", oid);
1522 pg_fatal(
"could not create large object %u: %s",
1527 pg_fatal(
"could not open large object %u: %s",
1533 ahprintf(AH,
"SELECT pg_catalog.lo_open(pg_catalog.lo_create('%u'), %d);\n",
1536 ahprintf(AH,
"SELECT pg_catalog.lo_open('%u', %d);\n",
1561 ahprintf(AH,
"SELECT pg_catalog.lo_close(0);\n\n");
1618 pg_fatal(
"could not find entry for ID %d",
1641 pg_fatal(
"could not close TOC file: %m");
1707 fn = fileno(stdout);
1710 fn = fileno(AH->
FH);
1716 fn = fileno(stdout);
1730 pg_fatal(
"could not open output file: %m");
1747 pg_fatal(
"could not close output file: %m");
1814 "wrote %zu bytes of large object data (result = %d)",
1827 (
const unsigned char *) AH->
lo_buf,
1833 ahprintf(AH,
"SELECT pg_catalog.lowrite(0, %s);\n",
buf->data);
1862 ptr = (
const char *) ptr + avail;
2021 pg_fatal(
"bad table dumpId for TABLE DATA item");
2061 for (off = 0; off <
sizeof(
pgoff_t); off++)
2119 for (off = 0; off < AH->
offSize; off++)
2126 pg_fatal(
"file offset in dump file is too large");
2237 pg_fatal(
"directory name too long: \"%s\"", dir);
2250 pg_log_debug(
"attempting to ascertain archive format");
2287 pg_fatal(
"directory \"%s\" does not appear to be a valid archive (\"toc.dat\" does not exist)",
2295 pg_fatal(
"could not open input file \"%s\": %m", AH->
fSpec);
2302 pg_fatal(
"could not open input file: %m");
2308 pg_fatal(
"could not read input file: %m");
2310 pg_fatal(
"input file is too short (read %zu, expected 5)", cnt);
2341 pg_fatal(
"input file appears to be a text format dump. Please use psql.");
2347 pg_fatal(
"input file does not appear to be a valid archive (too short?)");
2353 pg_fatal(
"input file does not appear to be a valid archive");
2362 pg_fatal(
"could not close input file: %m");
2441 pg_fatal(
"could not open stdout for appending: %m");
2529 for (
int i = 0;
i <
ntes;
i++)
2565 void *callback_data)
2571 pg_fatal(
"worker process failed: exit code %d",
2596 (*startPtr) (AH, te);
2669 pg_fatal(
"unexpected TOC entry in WriteToc(): %d %s %s",
2673 pg_fatal(
"error during file seek: %m");
2731 pg_fatal(
"entry ID %d out of range -- perhaps a corrupt TOC",
2766 else if (
strcmp(te->
desc,
"TABLE DATA") == 0 ||
2770 else if (
strcmp(te->
desc,
"CONSTRAINT") == 0 ||
2807 if (
strcmp(tmp,
"true") == 0)
2814 pg_log_warning(
"restoring tables WITH OIDS is not supported anymore");
2872 else if (
strcmp(te->
desc,
"STDSTRINGS") == 0)
2874 else if (
strcmp(te->
desc,
"SEARCHPATH") == 0)
2896 pg_fatal(
"unrecognized encoding \"%s\"",
2902 pg_fatal(
"invalid ENCODING item: %s",
2920 pg_fatal(
"invalid STDSTRINGS item: %s",
3010 if ((
strcmp(te->
desc,
"STATISTICS DATA") == 0) ||
3011 (
strcmp(te->
desc,
"EXTENDED STATISTICS DATA") == 0))
3025 strcmp(te->
desc,
"DATABASE PROPERTIES") == 0)
3076 strcmp(te->
desc,
"PUBLICATION TABLE") == 0 ||
3077 strcmp(te->
desc,
"PUBLICATION TABLES IN SCHEMA") == 0))
3166 for (
int i = 0;
i < te->
nDeps;
i++)
3207 strcmp(te->
desc,
"MATERIALIZED VIEW") == 0 ||
3208 strcmp(te->
desc,
"MATERIALIZED VIEW DATA") == 0 ||
3226 else if (
strcmp(te->
desc,
"FUNCTION") == 0 ||
3269 strncmp(te->
tag,
"LARGE OBJECT", 12) == 0) ||
3271 strncmp(te->
tag,
"LARGE OBJECT", 12) == 0) ||
3284 strncmp(te->
defn,
"-- load via partition root ", 27) == 0)
3310 strncmp(te->
tag,
"LARGE OBJECT", 12) == 0) ||
3312 strncmp(te->
tag,
"LARGE OBJECT", 12) == 0) ||
3314 strncmp(te->
tag,
"LARGE OBJECT", 12) == 0))))
3338 if (
strcmp(te->
desc,
"EVENT TRIGGER") == 0 ||
3339 strcmp(te->
desc,
"MATERIALIZED VIEW DATA") == 0)
3363 if (
strcmp(te->
desc,
"STATISTICS DATA") == 0 &&
3401 ahprintf(AH,
"SET statement_timeout = 0;\n");
3402 ahprintf(AH,
"SET lock_timeout = 0;\n");
3403 ahprintf(AH,
"SET idle_in_transaction_session_timeout = 0;\n");
3404 ahprintf(AH,
"SET transaction_timeout = 0;\n");
3407 ahprintf(AH,
"SET client_encoding = '%s';\n",
3411 ahprintf(AH,
"SET standard_conforming_strings = %s;\n",
3423 ahprintf(AH,
"SET check_function_bodies = false;\n");
3426 ahprintf(AH,
"SET xmloption = content;\n");
3429 ahprintf(AH,
"SET client_min_messages = warning;\n");
3433 ahprintf(AH,
"SET row_security = on;\n");
3435 ahprintf(AH,
"SET row_security = off;\n");
3482 pg_fatal(
"could not set session user to \"%s\": %s",
3624 "could not set \"search_path\" to \"%s\": %s",
3685 "could not set \"default_tablespace\" to %s: %s",
3734 "could not set \"default_table_access_method\": %s",
3756 const char *tableam = te->
tableam;
3783 "could not alter table access method: %s",
3814 strcmp(
type,
"TEXT SEARCH DICTIONARY") == 0 ||
3815 strcmp(
type,
"TEXT SEARCH CONFIGURATION") == 0 ||
3829 if (te->namespace && *te->namespace)
3855 last = first +
strlen(first) - 1;
3858 while (last >= first && (*last ==
'\n' || *last ==
';'))
3884 pg_fatal(
"don't know how to set owner for object type \"%s\"",
type);
3921 ahprintf(AH,
"-- TOC entry %d (class %u OID %u)\n",
3938 ahprintf(AH,
"-- %sName: %s; Type: %s; Schema: %s; Owner: %s",
3987 else if (
strcmp(te->
desc,
"BLOB METADATA") == 0)
4019 pg_fatal(
"unexpected TOC entry in _printTocEntry(): %d %s %s",
4044 const char *p = te->
defn;
4092 ahprintf(AH,
"ALTER %s OWNER TO %s;\n\n",
4167 pg_fatal(
"did not find magic string in file header");
4181 pg_fatal(
"unsupported version (%d.%d) in file header",
4188 if (AH->
intSize >
sizeof(
int))
4189 pg_log_warning(
"archive was made on a machine with larger integers, some operations might fail");
4199 pg_fatal(
"expected format (%d) differs from format found in file (%d)",
4221 pg_log_warning(
"archive is compressed, but this installation does not support compression (%s) -- no data will be available",
4602 for (
j = 0;
j <
te1->nLockDeps;
j++)
4604 for (k = 0; k <
te2->nDeps; k++)
4606 if (
te1->lockDeps[
j] ==
te2->dependencies[k])
4656 if (
te1->dataLength >
te2->dataLength)
4658 if (
te1->dataLength <
te2->dataLength)
4662 if (
te1->dumpId <
te2->dumpId)
4664 if (
te1->dumpId >
te2->dumpId)
4805 void *callback_data)
4821 else if (status != 0)
4822 pg_fatal(
"worker process failed: exit code %d",
5128 pg_log_info(
"table \"%s\" could not be created, will not restore its data",
5170 if (
clone->savedPassword)
5174 clone->public.n_errors = 0;
5184 clone->public.ropt->txn_size = 0;
int lo_write(int fd, const char *buf, int len)
void ParallelBackupEnd(ArchiveHandle *AH, ParallelState *pstate)
void WaitForWorkers(ArchiveHandle *AH, ParallelState *pstate, WFW_WaitOption mode)
ParallelState * ParallelBackupStart(ArchiveHandle *AH)
void DispatchJobForTocEntry(ArchiveHandle *AH, ParallelState *pstate, TocEntry *te, T_Action act, ParallelCompletionPtr callback, void *callback_data)
bool IsEveryWorkerIdle(ParallelState *pstate)
void binaryheap_remove_node(binaryheap *heap, int n)
void binaryheap_add(binaryheap *heap, bh_node_type d)
void binaryheap_free(binaryheap *heap)
binaryheap * binaryheap_allocate(int capacity, binaryheap_comparator compare, void *arg)
#define binaryheap_size(h)
#define binaryheap_empty(h)
#define binaryheap_get_node(h, n)
#define ngettext(s, p, n)
#define Assert(condition)
bool EndCompressFileHandle(CompressFileHandle *CFH)
char * supports_compression(const pg_compress_specification compression_spec)
CompressFileHandle * InitCompressFileHandle(const pg_compress_specification compression_spec)
const char * get_compress_algorithm_name(pg_compress_algorithm algorithm)
char * sanitize_line(const char *str, bool want_hyphen)
#define PGDUMP_STRFTIME_FMT
int errmsg(const char *fmt,...)
char * PQdb(const PGconn *conn)
char * PQerrorMessage(const PGconn *conn)
PGresult * PQexec(PGconn *conn, const char *query)
int lo_close(PGconn *conn, int fd)
int lo_open(PGconn *conn, Oid lobjId, int mode)
Oid lo_create(PGconn *conn, Oid lobjId)
void * pg_malloc(size_t size)
char * pg_strdup(const char *in)
void * pg_malloc0(size_t size)
void * pg_realloc(void *ptr, size_t size)
@ DATA_DIR_SYNC_METHOD_FSYNC
static DataDirSyncMethod sync_method
void pg_log_generic_v(enum pg_log_level level, enum pg_log_part part, const char *pg_restrict fmt, va_list ap)
#define pg_log_debug(...)
static AmcheckOptions opts
void(* SetupWorkerPtrType)(Archive *AH)
enum _archiveFormat ArchiveFormat
void ConnectDatabaseAhx(Archive *AHX, const ConnParams *cparams, bool isReconnect)
void DisconnectDatabase(Archive *AHX)
enum _teSection teSection
static void fix_dependencies(ArchiveHandle *AH)
static void repoint_table_dependencies(ArchiveHandle *AH)
void DeCloneArchive(ArchiveHandle *AH)
static int _discoverArchiveFormat(ArchiveHandle *AH)
#define TEXT_DUMPALL_HEADER
int TocIDRequired(ArchiveHandle *AH, DumpId id)
void ahwrite(const void *ptr, size_t size, size_t nmemb, ArchiveHandle *AH)
void warn_or_exit_horribly(ArchiveHandle *AH, const char *fmt,...)
void WriteDataChunksForTocEntry(ArchiveHandle *AH, TocEntry *te)
static void _becomeOwner(ArchiveHandle *AH, TocEntry *te)
void WriteHead(ArchiveHandle *AH)
int EndLO(Archive *AHX, Oid oid)
static CompressFileHandle * SaveOutput(ArchiveHandle *AH)
static void _becomeUser(ArchiveHandle *AH, const char *user)
static void pending_list_append(TocEntry *l, TocEntry *te)
size_t WriteInt(ArchiveHandle *AH, int i)
void ProcessArchiveRestoreOptions(Archive *AHX)
static int restore_toc_entry(ArchiveHandle *AH, TocEntry *te, bool is_parallel)
static void _moveBefore(TocEntry *pos, TocEntry *te)
RestoreOptions * NewRestoreOptions(void)
static bool _tocEntryIsACL(TocEntry *te)
static void move_to_ready_heap(TocEntry *pending_list, binaryheap *ready_heap, RestorePass pass)
char * ReadStr(ArchiveHandle *AH)
static void _getObjectDescription(PQExpBuffer buf, const TocEntry *te)
static void buildTocEntryArrays(ArchiveHandle *AH)
static void identify_locking_dependencies(ArchiveHandle *AH, TocEntry *te)
static void processEncodingEntry(ArchiveHandle *AH, TocEntry *te)
static void processSearchPathEntry(ArchiveHandle *AH, TocEntry *te)
int archprintf(Archive *AH, const char *fmt,...)
static void StrictNamesCheck(RestoreOptions *ropt)
static void mark_restore_job_done(ArchiveHandle *AH, TocEntry *te, int status, void *callback_data)
size_t WriteOffset(ArchiveHandle *AH, pgoff_t o, int wasSet)
static RestorePass _tocEntryRestorePass(TocEntry *te)
TocEntry * ArchiveEntry(Archive *AHX, CatalogId catalogId, DumpId dumpId, ArchiveOpts *opts)
int StartLO(Archive *AHX, Oid oid)
static void _printTocEntry(ArchiveHandle *AH, TocEntry *te, const char *pfx)
ArchiveHandle * CloneArchive(ArchiveHandle *AH)
static void setupRestoreWorker(Archive *AHX)
static void _reconnectToDB(ArchiveHandle *AH, const char *dbname)
static int TocEntrySizeCompareQsort(const void *p1, const void *p2)
Archive * OpenArchive(const char *FileSpec, const ArchiveFormat fmt)
void StartRestoreLOs(ArchiveHandle *AH)
void CloseArchive(Archive *AHX)
static void pending_list_header_init(TocEntry *l)
static void restore_toc_entries_parallel(ArchiveHandle *AH, ParallelState *pstate, TocEntry *pending_list)
static void SetOutput(ArchiveHandle *AH, const char *filename, const pg_compress_specification compression_spec)
TocEntry * getTocEntryByDumpId(ArchiveHandle *AH, DumpId id)
static void mark_create_done(ArchiveHandle *AH, TocEntry *te)
static void _selectTableAccessMethod(ArchiveHandle *AH, const char *tableam)
void WriteDataChunks(ArchiveHandle *AH, ParallelState *pstate)
static void dumpTimestamp(ArchiveHandle *AH, const char *msg, time_t tim)
int ahprintf(ArchiveHandle *AH, const char *fmt,...)
static void _selectOutputSchema(ArchiveHandle *AH, const char *schemaName)
static void mark_dump_job_done(ArchiveHandle *AH, TocEntry *te, int status, void *callback_data)
static bool is_load_via_partition_root(TocEntry *te)
Archive * CreateArchive(const char *FileSpec, const ArchiveFormat fmt, const pg_compress_specification compression_spec, bool dosync, ArchiveMode mode, SetupWorkerPtrType setupDumpWorker, DataDirSyncMethod sync_method)
static void _enableTriggersIfNecessary(ArchiveHandle *AH, TocEntry *te)
DumpOptions * NewDumpOptions(void)
void SortTocFromFile(Archive *AHX)
int ReadOffset(ArchiveHandle *AH, pgoff_t *o)
static void inhibit_data_for_failed_table(ArchiveHandle *AH, TocEntry *te)
int ReadInt(ArchiveHandle *AH)
static void restore_toc_entries_prefork(ArchiveHandle *AH, TocEntry *pending_list)
static void _printTableAccessMethodNoStorage(ArchiveHandle *AH, TocEntry *te)
static void restore_toc_entries_postfork(ArchiveHandle *AH, TocEntry *pending_list)
static void RestoreOutput(ArchiveHandle *AH, CompressFileHandle *savedOutput)
static void _doSetFixedOutputState(ArchiveHandle *AH)
void PrintTOCSummary(Archive *AHX)
static void processStdStringsEntry(ArchiveHandle *AH, TocEntry *te)
static int TocEntrySizeCompareBinaryheap(void *p1, void *p2, void *arg)
static int RestoringToDB(ArchiveHandle *AH)
void ReadHead(ArchiveHandle *AH)
void SetArchiveOptions(Archive *AH, DumpOptions *dopt, RestoreOptions *ropt)
static void pending_list_remove(TocEntry *te)
static bool has_lock_conflicts(TocEntry *te1, TocEntry *te2)
void ReadToc(ArchiveHandle *AH)
static void reduce_dependencies(ArchiveHandle *AH, TocEntry *te, binaryheap *ready_heap)
void EndRestoreLO(ArchiveHandle *AH, Oid oid)
static void _selectTablespace(ArchiveHandle *AH, const char *tablespace)
void RestoreArchive(Archive *AHX)
void WriteToc(ArchiveHandle *AH)
void archputs(const char *s, Archive *AH)
static bool _fileExistsInDirectory(const char *dir, const char *filename)
DumpOptions * dumpOptionsFromRestoreOptions(RestoreOptions *ropt)
static int _tocEntryRequired(TocEntry *te, teSection curSection, ArchiveHandle *AH)
static void _doSetSessionAuth(ArchiveHandle *AH, const char *user)
void EndRestoreLOs(ArchiveHandle *AH)
void StartRestoreLO(ArchiveHandle *AH, Oid oid, bool drop)
void InitDumpOptions(DumpOptions *opts)
static ArchiveHandle * _allocAH(const char *FileSpec, const ArchiveFormat fmt, const pg_compress_specification compression_spec, bool dosync, ArchiveMode mode, SetupWorkerPtrType setupWorkerPtr, DataDirSyncMethod sync_method)
static void dump_lo_buf(ArchiveHandle *AH)
static TocEntry * pop_next_work_item(binaryheap *ready_heap, ParallelState *pstate)
void WriteData(Archive *AHX, const void *data, size_t dLen)
int parallel_restore(ArchiveHandle *AH, TocEntry *te)
size_t WriteStr(ArchiveHandle *AH, const char *c)
static void _disableTriggersIfNecessary(ArchiveHandle *AH, TocEntry *te)
void InitArchiveFmt_Null(ArchiveHandle *AH)
#define WORKER_CREATE_DONE
void IssueACLPerBlob(ArchiveHandle *AH, TocEntry *te)
#define appendByteaLiteralAHX(buf, str, len, AH)
void struct _archiveOpts ArchiveOpts
void(* EndDataPtrType)(ArchiveHandle *AH, TocEntry *te)
void(* StartDataPtrType)(ArchiveHandle *AH, TocEntry *te)
#define ARCHIVE_MAJOR(version)
#define ARCHIVE_MINOR(version)
#define RESTORE_PASS_LAST
void InitArchiveFmt_Custom(ArchiveHandle *AH)
void InitArchiveFmt_Tar(ArchiveHandle *AH)
#define appendStringLiteralAHX(buf, str, AH)
void DropLOIfExists(ArchiveHandle *AH, Oid oid)
#define MAKE_ARCHIVE_VERSION(major, minor, rev)
void ReconnectToServer(ArchiveHandle *AH, const char *dbname)
#define ARCHIVE_REV(version)
bool isValidTarHeader(char *header)
#define WORKER_IGNORED_ERRORS
void IssueCommandPerBlob(ArchiveHandle *AH, TocEntry *te, const char *cmdBegin, const char *cmdEnd)
#define K_OFFSET_POS_NOT_SET
#define READ_ERROR_EXIT(fd)
void InitArchiveFmt_Directory(ArchiveHandle *AH)
#define WORKER_INHIBIT_DATA
void EndDBCopyMode(Archive *AHX, const char *tocEntryTag)
int ExecuteSqlCommandBuf(Archive *AHX, const char *buf, size_t bufLen)
void exit_nicely(int code)
static PgChecksumMode mode
static void setupDumpWorker(Archive *AH)
bool pg_get_line_buf(FILE *stream, StringInfo buf)
static char buf[DEFAULT_XLOG_SEG_SIZE]
#define pg_encoding_to_char
#define pg_char_to_encoding
#define pg_log_warning(...)
#define qsort(a, b, c, d)
PQExpBuffer createPQExpBuffer(void)
void initPQExpBuffer(PQExpBuffer str)
void appendPQExpBuffer(PQExpBuffer str, const char *fmt,...)
void destroyPQExpBuffer(PQExpBuffer str)
void appendPQExpBufferChar(PQExpBuffer str, char ch)
void appendPQExpBufferStr(PQExpBuffer str, const char *data)
void termPQExpBuffer(PQExpBuffer str)
size_t pvsnprintf(char *buf, size_t len, const char *fmt, va_list args)
char * psprintf(const char *fmt,...)
const char * simple_string_list_not_touched(SimpleStringList *list)
bool simple_string_list_member(SimpleStringList *list, const char *val)
const char * fmtQualifiedId(const char *schema, const char *id)
const char * fmtId(const char *rawid)
void setFmtEncoding(int encoding)
void appendPsqlMetaConnect(PQExpBuffer buf, const char *dbname)
void initStringInfo(StringInfo str)
SimpleStringListCell * head
DeClonePtrType DeClonePtr
DataDirSyncMethod sync_method
struct _tocEntry * lastErrorTE
ReadExtraTocPtrType ReadExtraTocPtr
char * archiveDumpVersion
struct _tocEntry * currentTE
CustomOutPtrType CustomOutPtr
StartLOsPtrType StartLOsPtr
ArchiveEntryPtrType ArchiveEntryPtr
pg_compress_specification compression_spec
WriteDataPtrType WriteDataPtr
StartLOPtrType StartLOPtr
struct _tocEntry ** tocsByDumpId
WriteBufPtrType WriteBufPtr
PrepParallelRestorePtrType PrepParallelRestorePtr
WriteExtraTocPtrType WriteExtraTocPtr
ReadBytePtrType ReadBytePtr
PrintTocDataPtrType PrintTocDataPtr
struct _tocEntry * currToc
WriteBytePtrType WriteBytePtr
ReadBufPtrType ReadBufPtr
PrintExtraTocPtrType PrintExtraTocPtr
ArchiverStage lastErrorStage
StartDataPtrType StartDataPtr
ArchiverOutput outputKind
EndDataPtrType EndDataPtr
char * archiveRemoteVersion
SetupWorkerPtrType SetupWorkerPtr
int disable_dollar_quoting
const char * lockWaitTimeout
SimpleStringList schemaExcludeNames
SimpleStringList functionNames
SimpleStringList tableNames
SimpleStringList indexNames
pg_compress_specification compression_spec
SimpleStringList triggerNames
int disable_dollar_quoting
SimpleStringList schemaNames
const char * lockWaitTimeout
int noDataForFailedTables
struct _tocEntry * pending_next
struct _tocEntry * pending_prev
const void * dataDumperArg
const void * defnDumperArg
pg_compress_algorithm algorithm
static void * fn(void *arg)
#define fseeko(stream, offset, origin)
static void StartTransaction(void)
static void CommitTransaction(void)