summaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/pg_backup_archiver.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-01-25 22:44:31 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-01-25 22:44:31 +0000
commitfd5437c78b1d5e91ca034a5d4a820e668af33850 (patch)
tree5f0db4285ee7e7ae503578ed3546c2a0b4bde77e /src/bin/pg_dump/pg_backup_archiver.h
parent5ca9687fe4e5f44cc4d23ed4263236aec6e6764d (diff)
downloadpostgresql-fd5437c78b1d5e91ca034a5d4a820e668af33850.tar.gz
Fix breakage created by addition of separate 'acl pass' in pg_dump.
Also clean up incredibly poor style in TocIDRequired() usage.
Diffstat (limited to 'src/bin/pg_dump/pg_backup_archiver.h')
-rw-r--r--src/bin/pg_dump/pg_backup_archiver.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/bin/pg_dump/pg_backup_archiver.h b/src/bin/pg_dump/pg_backup_archiver.h
index dd92bc8d39..c08665c2e5 100644
--- a/src/bin/pg_dump/pg_backup_archiver.h
+++ b/src/bin/pg_dump/pg_backup_archiver.h
@@ -17,7 +17,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.h,v 1.62 2004/11/06 19:36:01 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.h,v 1.63 2005/01/25 22:44:31 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -164,6 +164,13 @@ typedef enum
STAGE_FINALIZING
} ArchiverStage;
+typedef enum
+{
+ REQ_SCHEMA = 1,
+ REQ_DATA = 2,
+ REQ_ALL = REQ_SCHEMA + REQ_DATA
+} teReqs;
+
typedef struct _archiveHandle
{
Archive public; /* Public part of archive */
@@ -321,7 +328,7 @@ extern void WriteToc(ArchiveHandle *AH);
extern void ReadToc(ArchiveHandle *AH);
extern void WriteDataChunks(ArchiveHandle *AH);
-extern int TocIDRequired(ArchiveHandle *AH, DumpId id, RestoreOptions *ropt);
+extern teReqs TocIDRequired(ArchiveHandle *AH, DumpId id, RestoreOptions *ropt);
extern bool checkSeek(FILE *fp);
/*