projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71cbbbb
)
Avoid referencing Z_DEFAULT_COMPRESSION outside HAVE_LIBZ.
author
Robert Haas
<rhaas@postgresql.org>
Thu, 27 Jan 2022 20:11:19 +0000
(15:11 -0500)
committer
Robert Haas
<rhaas@postgresql.org>
Thu, 27 Jan 2022 20:11:19 +0000
(15:11 -0500)
Because that's bad.
Discussion: http://postgr.es/m/
20220127174545
.GV23027@telsasoft.com
src/bin/pg_basebackup/pg_basebackup.c
patch
|
blob
|
blame
|
history
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);
}