pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix failure to honor -Z compression level option in pg_dump -Fd. 5+ messages / 1 participants [nested] [flat]
* pgsql: Fix failure to honor -Z compression level option in pg_dump -Fd. @ 2015-02-18 16:43 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2015-02-18 16:43 UTC (permalink / raw) To: pgsql-committers Fix failure to honor -Z compression level option in pg_dump -Fd. cfopen() and cfopen_write() failed to pass the compression level through to zlib, so that you always got the default compression level if you got any at all. In passing, also fix these and related functions so that the correct errno is reliably returned on failure; the original coding supposes that free() cannot change errno, which is untrue on at least some platforms. Per bug #12779 from Christoph Berg. Back-patch to 9.1 where the faulty code was introduced. Michael Paquier Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/0e7e355f27302b62af3e1add93853ccd45678443 Modified Files -------------- src/bin/pg_dump/compress_io.c | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix failure to honor -Z compression level option in pg_dump -Fd. @ 2015-02-18 16:43 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2015-02-18 16:43 UTC (permalink / raw) To: pgsql-committers Fix failure to honor -Z compression level option in pg_dump -Fd. cfopen() and cfopen_write() failed to pass the compression level through to zlib, so that you always got the default compression level if you got any at all. In passing, also fix these and related functions so that the correct errno is reliably returned on failure; the original coding supposes that free() cannot change errno, which is untrue on at least some platforms. Per bug #12779 from Christoph Berg. Back-patch to 9.1 where the faulty code was introduced. Michael Paquier Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/a75dfb73e19e2da5ac0bd9a0c616c42a2a2b5ad1 Modified Files -------------- src/bin/pg_dump/compress_io.c | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix failure to honor -Z compression level option in pg_dump -Fd. @ 2015-02-18 16:43 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2015-02-18 16:43 UTC (permalink / raw) To: pgsql-committers Fix failure to honor -Z compression level option in pg_dump -Fd. cfopen() and cfopen_write() failed to pass the compression level through to zlib, so that you always got the default compression level if you got any at all. In passing, also fix these and related functions so that the correct errno is reliably returned on failure; the original coding supposes that free() cannot change errno, which is untrue on at least some platforms. Per bug #12779 from Christoph Berg. Back-patch to 9.1 where the faulty code was introduced. Michael Paquier Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/a7ad5cf0cfcfab8418000d652fa4f0c6ad6c8911 Modified Files -------------- src/bin/pg_dump/compress_io.c | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix failure to honor -Z compression level option in pg_dump -Fd. @ 2015-02-18 16:43 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2015-02-18 16:43 UTC (permalink / raw) To: pgsql-committers Fix failure to honor -Z compression level option in pg_dump -Fd. cfopen() and cfopen_write() failed to pass the compression level through to zlib, so that you always got the default compression level if you got any at all. In passing, also fix these and related functions so that the correct errno is reliably returned on failure; the original coding supposes that free() cannot change errno, which is untrue on at least some platforms. Per bug #12779 from Christoph Berg. Back-patch to 9.1 where the faulty code was introduced. Michael Paquier Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/c86f8f3615c43aba45a031028500988d1e694aaf Modified Files -------------- src/bin/pg_dump/compress_io.c | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Fix failure to honor -Z compression level option in pg_dump -Fd. @ 2015-02-18 16:43 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2015-02-18 16:43 UTC (permalink / raw) To: pgsql-committers Fix failure to honor -Z compression level option in pg_dump -Fd. cfopen() and cfopen_write() failed to pass the compression level through to zlib, so that you always got the default compression level if you got any at all. In passing, also fix these and related functions so that the correct errno is reliably returned on failure; the original coding supposes that free() cannot change errno, which is untrue on at least some platforms. Per bug #12779 from Christoph Berg. Back-patch to 9.1 where the faulty code was introduced. Michael Paquier Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/b0d53b2e3025a25499d7e81772a04560e749e876 Modified Files -------------- src/bin/pg_dump/compress_io.c | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2015-02-18 16:43 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-02-18 16:43 pgsql: Fix failure to honor -Z compression level option in pg_dump -Fd. Tom Lane <tgl@sss.pgh.pa.us> 2015-02-18 16:43 pgsql: Fix failure to honor -Z compression level option in pg_dump -Fd. Tom Lane <tgl@sss.pgh.pa.us> 2015-02-18 16:43 pgsql: Fix failure to honor -Z compression level option in pg_dump -Fd. Tom Lane <tgl@sss.pgh.pa.us> 2015-02-18 16:43 pgsql: Fix failure to honor -Z compression level option in pg_dump -Fd. Tom Lane <tgl@sss.pgh.pa.us> 2015-02-18 16:43 pgsql: Fix failure to honor -Z compression level option in pg_dump -Fd. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox