pg_basebackup: Cleaner handling when compression is multiply specified.
authorRobert Haas <rhaas@postgresql.org>
Fri, 28 Jan 2022 16:40:53 +0000 (11:40 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 28 Jan 2022 16:40:53 +0000 (11:40 -0500)
commit51891d5a95605c4e98324731b386345d89c5a71e
tree4d9aff5b7c8638a70f58d5c6f1bcfc0efa51ecd1
parentda505eafca81bc81c34f729521a42a093408cb92
pg_basebackup: Cleaner handling when compression is multiply specified.

Tushar Ahuja discovered that if you use both --compress and --gzip,
or --compress multiple times, the last instance of one of these
options doesn't in all cases overwrite the compression level set by
an earlier option. That's not a serious bug, but it also has nothing
to recommend it. Repair.

Discussion: http://postgr.es/m/CA+TgmoZfP=rsZB_9vDGfhuNgSu_M_09UWu8SjvsP65y_1pQFCg@mail.gmail.com
src/bin/pg_basebackup/pg_basebackup.c