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:
parent
74d9e43774
commit
1da749aa5e
@ -564,7 +564,7 @@ compress_init(void)
|
|||||||
if (backup_subcmd != SET_CONFIG)
|
if (backup_subcmd != SET_CONFIG)
|
||||||
{
|
{
|
||||||
if (compress_level != DEFAULT_COMPRESS_LEVEL
|
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");
|
elog(ERROR, "Cannot specify compress-level option without compress-alg option");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -353,7 +353,7 @@ extern CompressAlg compress_alg;
|
|||||||
extern int compress_level;
|
extern int compress_level;
|
||||||
extern bool compress_shortcut;
|
extern bool compress_shortcut;
|
||||||
|
|
||||||
#define DEFAULT_COMPRESS_LEVEL 6
|
#define DEFAULT_COMPRESS_LEVEL 1
|
||||||
|
|
||||||
extern CompressAlg parse_compress_alg(const char *arg);
|
extern CompressAlg parse_compress_alg(const char *arg);
|
||||||
extern const char* deparse_compress_alg(int alg);
|
extern const char* deparse_compress_alg(int alg);
|
||||||
|
Loading…
Reference in New Issue
Block a user