git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 27b77ec) | patch
Fix thinko coming from 000f3adf
Sat, 8 Jan 2022 00:12:21 +0000 (09:12 +0900)
Sat, 8 Jan 2022 00:12:21 +0000 (09:12 +0900)
commit d0d62262d34154965511cfda6b98609d27752d5a
Fix thinko coming from 000f3adf

pg_basebackup.c relies on the compression level to not be 0 to decide if
compression should be used, but 000f3adf missed the fact that the
default compression (Z_DEFAULT_COMPRESSION) is -1, which would be used
if specifying --gzip without --compress.

While on it, add some coverage for --gzip, as this is rather easy to
miss.

Reported-by: Christoph Berg
Discussion: https://postgr.es/m/YdhRDMLjabtXOnhY@msg.df7cb.de
src/bin/pg_basebackup/pg_basebackup.c diff | blob | blame | history
src/bin/pg_basebackup/t/010_pg_basebackup.pl diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /