]> granicus.if.org Git - postgresql/commit
Fix oversights in pg_basebackup's -z (compression) option.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 15 Jun 2011 17:15:05 +0000 (13:15 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 15 Jun 2011 17:15:36 +0000 (13:15 -0400)
commitdc014e0446f5bfb52129fc6781a98b236d8166c6
treedc79e0675e71c0fffebae0a0fbe710f7aba5f2a8
parent2b44a2d62d12406da59fa6b23a0854d1d5068b17
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.
src/bin/pg_basebackup/pg_basebackup.c