diff --git a/src/pg_probackup.c b/src/pg_probackup.c index c66179e1..668744b2 100644 --- a/src/pg_probackup.c +++ b/src/pg_probackup.c @@ -564,7 +564,7 @@ compress_init(void) if (backup_subcmd != SET_CONFIG) { if (compress_level != DEFAULT_COMPRESS_LEVEL - && compress_alg == NONE_COMPRESS) + && compress_alg == NOT_DEFINED_COMPRESS) elog(ERROR, "Cannot specify compress-level option without compress-alg option"); } diff --git a/src/pg_probackup.h b/src/pg_probackup.h index 15c29204..b01094e3 100644 --- a/src/pg_probackup.h +++ b/src/pg_probackup.h @@ -353,7 +353,7 @@ extern CompressAlg compress_alg; extern int compress_level; extern bool compress_shortcut; -#define DEFAULT_COMPRESS_LEVEL 6 +#define DEFAULT_COMPRESS_LEVEL 1 extern CompressAlg parse_compress_alg(const char *arg); extern const char* deparse_compress_alg(int alg);