1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-31 12:33:33 +02:00

fix condition for elog message about compression level 0

This commit is contained in:
Grigory Smolkin 2019-02-28 17:54:45 +03:00
parent 093e597ac8
commit 7a34dbe5f8

View File

@ -578,7 +578,7 @@ compress_init(void)
if (instance_config.compress_level < 0 || instance_config.compress_level > 9)
elog(ERROR, "--compress-level value must be in the range from 0 to 9");
if (instance_config.compress_level == 0)
if (instance_config.compress_alg == ZLIB_COMPRESS && instance_config.compress_level == 0)
elog(WARNING, "Compression level 0 will lead to data bloat!");
if (backup_subcmd == BACKUP_CMD || backup_subcmd == ARCHIVE_PUSH_CMD)