pgsql: Fix failure to honor -Z compression level option in pg_dump -Fd.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix failure to honor -Z compression level option in pg_dump -Fd.
Дата
Msg-id E1YO7iP-0002jy-Cs@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix EXPLAIN output for cases where parent table is excluded by c
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix failure to honor -Z compression level option in pg_dump -Fd.