From b2514b9a0aea6e4c6c74c8a40a05417ba99b08f4 Mon Sep 17 00:00:00 2001 From: Grigory Smolkin Date: Thu, 28 Feb 2019 16:55:11 +0300 Subject: [PATCH] allow user to specify compress-level=0 --- src/pg_probackup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pg_probackup.c b/src/pg_probackup.c index e6516e92..deee06e9 100644 --- a/src/pg_probackup.c +++ b/src/pg_probackup.c @@ -579,7 +579,7 @@ compress_init(void) elog(ERROR, "--compress-level value must be in the range from 0 to 9"); 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) {