postgresql/src/bin/pg_dump
Tom Lane cae2bb1986 Make pg_dump behave more sanely when built without HAVE_LIBZ.
For some reason the code to emit a warning and switch to uncompressed
output was placed down in the guts of pg_backup_archiver.c.  This is
definitely too late in the case of parallel operation (and I rather
wonder if it wasn't too late for other purposes as well).  Put it in
pg_dump.c's option-processing logic, which seems a much saner place.

Also, the default behavior with custom or directory output format was
to emit the warning telling you the output would be uncompressed.  This
seems unhelpful, so silence that case.

Back-patch to 9.3 where parallel dump was introduced.

Kyotaro Horiguchi, adjusted a bit by me

Report: <20160526.185551.242041780.horiguchi.kyotaro@lab.ntt.co.jp>
2016-05-26 11:51:04 -04:00
..
po Translation updates 2016-05-09 10:04:41 -04:00
t Do not DROP default roles in pg_dumpall -c 2016-05-24 23:31:55 -04:00
.gitignore Clean up after pg_dump test runs. 2016-05-06 22:28:01 -04:00
common.c In pg_dump, use a bitmap to represent what to include 2016-04-06 21:45:32 -04:00
compress_io.c Fix typos. 2016-03-15 18:06:11 -04:00
compress_io.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
dumputils.c Qualify table usage in dumpTable() and use regclass 2016-05-24 20:10:16 -04:00
dumputils.h In pg_dump, include pg_catalog and extension ACLs, if changed 2016-04-06 21:45:32 -04:00
Makefile Clean up after pg_dump test runs. 2016-05-06 22:28:01 -04:00
nls.mk Translation updates 2016-05-09 10:04:41 -04:00
parallel.c In Windows pg_dump, ensure idle workers will shut down during error exit. 2016-05-26 10:50:30 -04:00
parallel.h Fix broken error handling in parallel pg_dump/pg_restore. 2016-05-25 12:40:12 -04:00
pg_backup_archiver.c Make pg_dump behave more sanely when built without HAVE_LIBZ. 2016-05-26 11:51:04 -04:00
pg_backup_archiver.h Access pg_dump's options structs through Archive struct, not directly. 2016-01-13 17:48:33 -05:00
pg_backup_custom.c pg_dump: Fix inconsistent sscanf() conversions 2016-02-18 20:12:38 -05:00
pg_backup_db.c In pg_dump, remember connection passwords no matter how we got them. 2015-12-23 14:25:53 -05:00
pg_backup_db.h pg_dump: Reduce use of global variables 2014-10-14 15:00:55 -03:00
pg_backup_directory.c pg_dump: Fix inconsistent sscanf() conversions 2016-02-18 20:12:38 -05:00
pg_backup_null.c Create src/fe_utils/, and move stuff into there from pg_dump's dumputils. 2016-03-24 15:55:57 -04:00
pg_backup_tar.c Create src/fe_utils/, and move stuff into there from pg_dump's dumputils. 2016-03-24 15:55:57 -04:00
pg_backup_tar.h Fix tar files emitted by pg_dump and pg_basebackup to be POSIX conformant. 2012-09-28 15:19:15 -04:00
pg_backup_utils.c Fix broken error handling in parallel pg_dump/pg_restore. 2016-05-25 12:40:12 -04:00
pg_backup_utils.h Update copyright for 2016 2016-01-02 13:33:40 -05:00
pg_backup.h Create src/fe_utils/, and move stuff into there from pg_dump's dumputils. 2016-03-24 15:55:57 -04:00
pg_dump_sort.c Fix improper usage of 'dump' bitmap 2016-04-08 16:30:02 -04:00
pg_dump.c Make pg_dump behave more sanely when built without HAVE_LIBZ. 2016-05-26 11:51:04 -04:00
pg_dump.h Only issue LOCK TABLE commands when necessary 2016-05-06 14:06:50 -04:00
pg_dumpall.c Do not DROP default roles in pg_dumpall -c 2016-05-24 23:31:55 -04:00
pg_restore.c pg_dump: Message style improvements 2016-04-25 17:16:59 -04:00