mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 08:31:21 +02:00
Avoid referencing Z_DEFAULT_COMPRESSION outside HAVE_LIBZ.
Because that's bad. Discussion: http://postgr.es/m/20220127174545.GV23027@telsasoft.com
This commit is contained in:
parent
71cbbbbe80
commit
8ee940843d
@ -1919,7 +1919,7 @@ BaseBackup(void)
|
||||
}
|
||||
AppendStringCommandOption(&buf, use_new_option_syntax,
|
||||
"COMPRESSION", compressmethodstr);
|
||||
if (compresslevel != 0 && compresslevel != Z_DEFAULT_COMPRESSION)
|
||||
if (compresslevel >= 1) /* not 0 or Z_DEFAULT_COMPRESSION */
|
||||
AppendIntegerCommandOption(&buf, use_new_option_syntax,
|
||||
"COMPRESSION_LEVEL", compresslevel);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user