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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 31156ce8b95c5e9fa8cb01f08de008c3289c1086
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-06-15T17:15:05Z
Releases: 9.2.0
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.

Files

PathChange+/−
src/bin/pg_basebackup/pg_basebackup.c modified +7 −7