Skip to content

Commit 1da749a

Browse files
committed
Default compression level is 1, use NOT_DEFINED_COMPRESS for not defined compression algorithm
1 parent 74d9e43 commit 1da749a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pg_probackup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ compress_init(void)
564564
if (backup_subcmd != SET_CONFIG)
565565
{
566566
if (compress_level != DEFAULT_COMPRESS_LEVEL
567-
&& compress_alg == NONE_COMPRESS)
567+
&& compress_alg == NOT_DEFINED_COMPRESS)
568568
elog(ERROR, "Cannot specify compress-level option without compress-alg option");
569569
}
570570

src/pg_probackup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ extern CompressAlg compress_alg;
353353
extern int compress_level;
354354
extern bool compress_shortcut;
355355

356-
#define DEFAULT_COMPRESS_LEVEL 6
356+
#define DEFAULT_COMPRESS_LEVEL 1
357357

358358
extern CompressAlg parse_compress_alg(const char *arg);
359359
extern const char* deparse_compress_alg(int alg);

0 commit comments

Comments
 (0)