diff options
Diffstat (limited to 'src/bin/pg_dump/pg_backup_archiver.h')
-rw-r--r-- | src/bin/pg_dump/pg_backup_archiver.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_backup_archiver.h b/src/bin/pg_dump/pg_backup_archiver.h index ae0c6e0963d..a285a69b97c 100644 --- a/src/bin/pg_dump/pg_backup_archiver.h +++ b/src/bin/pg_dump/pg_backup_archiver.h @@ -49,6 +49,7 @@ #define GZCLOSE(fh) fclose(fh) #define GZWRITE(p, s, n, fh) (fwrite(p, s, n, fh) * (s)) #define GZREAD(p, s, n, fh) fread(p, s, n, fh) +/* this is just the redefinition of a libz constant */ #define Z_DEFAULT_COMPRESSION (-1) typedef struct _z_stream @@ -266,7 +267,11 @@ typedef struct _archiveHandle DumpId maxDumpId; /* largest DumpId among all TOC entries */ struct _tocEntry *currToc; /* Used when dumping data */ - int compression; /* Compression requested on open */ + int compression; /* Compression requested on open + * Possible values for compression: + * -1 Z_DEFAULT_COMPRESSION + * 0 COMPRESSION_NONE + * 1-9 levels for gzip compression */ ArchiveMode mode; /* File mode - r or w */ void *formatData; /* Header data specific to file format */ |