pgsql: Fix oversights in pg_basebackup's -z (compression) option.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix oversights in pg_basebackup's -z (compression) option.
Date: 2011-06-15 17:16:01
Message-ID: E1QWthB-0001Fb-NH@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix oversights in pg_basebackup's -z (compression) option.

The short-form -z switch didn't work, for lack of telling getopt_long
about it; and even if specified long-form, it failed to do anything,
because the various tests elsewhere in the file would take
Z_DEFAULT_COMPRESSION (which is -1) as meaning "don't compress".

Per bug #6060 from Shigehiro Honda, though I editorialized on his patch
a bit.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/dc014e0446f5bfb52129fc6781a98b236d8166c6

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-06-15 18:06:15 pgsql: Fix failure to account for memory used by tuplestore_putvalues()
Previous Message User Fxjr 2011-06-15 16:23:18 npgsql - Npgsql2: Fixed problem with last update about Password as