https://github.com/postgres/postgres
Revision 08012455cd31a4148c5072a6aac1ad41a89e6d4b authored by Andrew Dunstan on 25 July 2015, 21:14:36 UTC, committed by Andrew Dunstan on 25 July 2015, 21:15:32 UTC
This was broken by commit 0e7e355f27302b62af3e1add93853ccd45678443 and
friends, which ignored the fact that gzopen() will treat "-1" in the
mode argument as an invalid character, which it ignores, and a flag for
compression level 1. Now, when this value is encountered no compression
level flag is passed  to gzopen, leaving it to use the zlib default.

Also, enforce the documented allowed range for pg_dump's -Z option,
namely 0 .. 9, and remove some consequently dead code from
pg_backup_tar.c.

Problem reported by Marc Mamin.

Backpatch to 9.1, like the patch that introduced the bug.
1 parent 62005e9
History
Tip revision: 08012455cd31a4148c5072a6aac1ad41a89e6d4b authored by Andrew Dunstan on 25 July 2015, 21:14:36 UTC
Restore use of zlib default compression in pg_dump directory mode.
Tip revision: 0801245
File Mode Size
config
contrib
doc
src
.dir-locals.el -rw-r--r-- 738 bytes
.gitattributes -rw-r--r-- 1.7 KB
.gitignore -rw-r--r-- 428 bytes
COPYRIGHT -rw-r--r-- 1.2 KB
GNUmakefile.in -rw-r--r-- 3.6 KB
HISTORY -rw-r--r-- 283 bytes
Makefile -rw-r--r-- 1.5 KB
README -rw-r--r-- 1.2 KB
README.git -rw-r--r-- 727 bytes
aclocal.m4 -rw-r--r-- 385 bytes
configure -rwxr-xr-x 450.6 KB
configure.in -rw-r--r-- 71.5 KB

README

back to top