We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c60ac commit 21b28fcCopy full SHA for 21b28fc
pg_probackup.c
@@ -71,7 +71,7 @@ uint32 retention_window = 0;
71
72
/* compression options */
73
CompressAlg compress_alg = NOT_DEFINED_COMPRESS;
74
-int compress_level = -1;
+int compress_level = DEFAULT_COMPRESS_LEVEL;
75
76
/* other options */
77
char *instance_name;
@@ -353,8 +353,7 @@ main(int argc, char *argv[])
353
if (num_threads < 1)
354
num_threads = 1;
355
356
- if (compress_level != -1 &&
357
- (compress_level < 0 || compress_level > 9))
+ if (compress_level < 0 || compress_level > 9)
358
elog(ERROR, "--compress-level value must be in the range from 0 to 9");
359
360
/* do actual operation */
0 commit comments