mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Code review for --no-data-for-failed-tables patch. Instead of trashing
one of the program's core data structures, make use of the existing ability to selectively exclude TOC items by ID. Slightly more code but much less likely to create future maintenance problems.
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup.h,v 1.43 2006/10/04 00:30:05 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup.h,v 1.44 2006/10/14 23:07:22 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -112,15 +112,12 @@ typedef struct _restoreOptions
|
||||
int noDataForFailedTables;
|
||||
int requirePassword;
|
||||
int exit_on_error;
|
||||
|
||||
bool *idWanted;
|
||||
bool limitToList;
|
||||
int compression;
|
||||
|
||||
int suppressDumpWarnings; /* Suppress output of WARNING entries
|
||||
* to stderr */
|
||||
bool single_txn;
|
||||
|
||||
bool *idWanted; /* array showing which dump IDs to emit */
|
||||
} RestoreOptions;
|
||||
|
||||
/*
|
||||
@ -176,8 +173,9 @@ extern void PrintTOCSummary(Archive *AH, RestoreOptions *ropt);
|
||||
|
||||
extern RestoreOptions *NewRestoreOptions(void);
|
||||
|
||||
/* Rearrange TOC entries */
|
||||
extern void SortTocFromFile(Archive *AH, RestoreOptions *ropt);
|
||||
/* Rearrange and filter TOC entries */
|
||||
extern void SortTocFromFile(Archive *AHX, RestoreOptions *ropt);
|
||||
extern void InitDummyWantedList(Archive *AHX, RestoreOptions *ropt);
|
||||
|
||||
/* Convenience functions used only when writing DATA */
|
||||
extern int archputs(const char *s, Archive *AH);
|
||||
|
Reference in New Issue
Block a user