diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-01-08 09:12:21 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-01-08 09:12:21 +0900 |
commit | d0d62262d34154965511cfda6b98609d27752d5a (patch) | |
tree | 9dba027f40aa10582fb30aca61ae82408dd3500e /src/test/perl/PostgreSQL/Test/Cluster.pm | |
parent | 27b77ecf9f4d5be211900eda54d8155ada50d696 (diff) | |
download | postgresql-d0d62262d34154965511cfda6b98609d27752d5a.tar.gz postgresql-d0d62262d34154965511cfda6b98609d27752d5a.zip |
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
Diffstat (limited to 'src/test/perl/PostgreSQL/Test/Cluster.pm')
0 files changed, 0 insertions, 0 deletions