mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-12-13 11:53:59 +02:00
allow user to specify compress-level=0
This commit is contained in:
parent
b0f8b8725f
commit
b2514b9a0a
@ -579,7 +579,7 @@ compress_init(void)
|
|||||||
elog(ERROR, "--compress-level value must be in the range from 0 to 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_level == 0)
|
||||||
instance_config.compress_alg = NOT_DEFINED_COMPRESS;
|
elog(WARNING, "Compression level 0 will lead to data bloat!");
|
||||||
|
|
||||||
if (backup_subcmd == BACKUP_CMD || backup_subcmd == ARCHIVE_PUSH_CMD)
|
if (backup_subcmd == BACKUP_CMD || backup_subcmd == ARCHIVE_PUSH_CMD)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user