1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-09 14:45:47 +02:00

Default compression level is 1, use NOT_DEFINED_COMPRESS for not defined compression algorithm

This commit is contained in:
Arthur Zakirov 2018-06-09 13:55:30 +03:00
parent 74d9e43774
commit 1da749aa5e
2 changed files with 2 additions and 2 deletions

View File

@ -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");
}

View File

@ -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);