git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 71cbbbb)
Avoid referencing Z_DEFAULT_COMPRESSION outside HAVE_LIBZ.
2022年1月27日 20:11:19 +0000 (15:11 -0500)
2022年1月27日 20:11:19 +0000 (15:11 -0500)
Because that's bad.

Discussion: http://postgr.es/m/20220127174545.GV23027@telsasoft.com


diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c
index 851f03ca81a73c8b81b0f3ee63b0231e874883d8..c351084db31e1f9e6e321ee0e3a568d96d811886 100644 (file)
--- a/src/bin/pg_basebackup/pg_basebackup.c
+++ b/src/bin/pg_basebackup/pg_basebackup.c
@@ -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);
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /