postgresql/src/bin
Michael Paquier 8ac4c25a05 Clean up some dead code in pg_dump with tar format and gzip compression
Compression with gzip has never been supported in the tar format of
pg_dump since this code has been introduced in c3e18804, as the use of
buffered I/O in gzdopen() changes the file positioning that tar
requires.  The original idea behind the use of compression with the tar
mode is to be able to include compressed data files (named %u.dat.gz)
and blob files (blob_%u.dat.gz) in the tarball generated by the dump,
with toc.dat, that tracks down if compression is used in the dump,
always uncompressed.

Note that this commit removes the dump part of the code as well as the
restore part, removing any dependency to zlib in pg_backup_tar.c.  There
could be an argument behind keeping around the restore part, but this
would require one to change the internals of a tarball previously dumped
so as data and blob files are compressed with toc.dat itself changed to
track down if compression is enabled.  However, the argument about
gzdopen() still holds in the read case with pg_restore.

Removing this code simplifies future additions related to compression in
pg_dump.

Author: Georgios Kokolatos, Rachel Heaton
Discussion: https://postgr.es/m/faUNEOpts9vunEaLnmxmG-DldLSg_ql137OC3JYDmgrOMHm1RvvWY2IdBkv_CRxm5spCCb_OmKNk2T03TMm0fBEWveFF9wA1WizPuAgB7Ss=@protonmail.com
2022-03-31 10:34:10 +09:00
..
initdb Fix global ICU collations for ICU < 54 2022-03-20 10:21:45 +01:00
pg_amcheck Harden TAP tests that intentionally corrupt page checksums. 2022-03-25 14:23:26 -04:00
pg_archivecleanup Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
pg_basebackup Allow parallel zstd compression when taking a base backup. 2022-03-30 09:41:26 -04:00
pg_checksums Harden TAP tests that intentionally corrupt page checksums. 2022-03-25 14:23:26 -04:00
pg_config Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
pg_controldata Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
pg_ctl Remove more unused module imports from TAP tests 2022-03-27 22:26:40 +02:00
pg_dump Clean up some dead code in pg_dump with tar format and gzip compression 2022-03-31 10:34:10 +09:00
pg_resetwal Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
pg_rewind Add new block-by-block strategy for CREATE DATABASE. 2022-03-29 11:48:36 -04:00
pg_test_fsync Remove unused module imports from TAP tests 2022-03-24 20:51:40 +01:00
pg_test_timing Remove unused module imports from TAP tests 2022-03-24 20:51:40 +01:00
pg_upgrade Refactor DLSUFFIX handling 2022-03-25 08:56:02 +01:00
pg_verifybackup Allow parallel zstd compression when taking a base backup. 2022-03-30 09:41:26 -04:00
pg_waldump waldump: fix use-after-free in search_directory(). 2022-03-27 18:13:50 -07:00
pgbench Avoid using large pass-by-value struct arguments in pgbench. 2022-03-27 14:38:05 -04:00
pgevent Update copyright for 2022 2022-01-07 19:04:57 -05:00
psql Add new block-by-block strategy for CREATE DATABASE. 2022-03-29 11:48:36 -04:00
scripts Simplify a needlessly-complicated regular expression. 2022-03-30 09:03:28 -04:00
Makefile Update copyright for 2022 2022-01-07 19:04:57 -05:00