pgsql: pg_basebackup: Cleaner handling when compression is multiply spe

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_basebackup: Cleaner handling when compression is multiply spe
Date: 2022-01-28 16:51:26
Message-ID: E1nDUT8-0003Fb-9X@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/51891d5a95605c4e98324731b386345d89c5a71e

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 6 ++++++
1 file changed, 6 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2022-01-28 17:33:06 pgsql: Adjust server-side backup to depend on pg_write_server_files.
Previous Message Robert Haas 2022-01-28 14:04:03 pgsql: Fix mistakes in commit d45099425eb19e420433c9d81d354fe585f4dbd6.