mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03: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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user