Fix pgbench's failure to honor the documented long-form option "--builtin".
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 7 Mar 2017 16:36:35 +0000 (11:36 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 7 Mar 2017 16:36:35 +0000 (11:36 -0500)
commit0e2c85d130b85549da469e8a16ee1c863e2f3da4
tree092f128d36b566be010014db60d43c4988b16c1c
parente961341cc1491ddf41e9408d9b1d3342df9ea2c2
Fix pgbench's failure to honor the documented long-form option "--builtin".

Not only did it not accept --builtin as a synonym for -b, but what it did
accept as a synonym was --tpc-b (huh?), which it got even further wrong
by marking as no_argument, so that if you did try that you got a core
dump.  I suppose this is leftover from some early design for the new
switches added by commit 8bea3d221, but it's still pretty sloppy work.

Per bug #14580 from Stepan Pesternikov.  Back-patch to 9.6 where the
error was introduced.

Report: https://postgr.es/m/20170307123347.25054.73207@wrigleys.postgresql.org
src/bin/pgbench/pgbench.c