pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix pgbench's failure to honor the documented long-form option "
4+ messages / 3 participants
[nested] [flat]

* pgsql: Fix pgbench's failure to honor the documented long-form option "
@ 2017-03-07 16:36 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2017-03-07 16:36 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
master

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

Modified Files
--------------
src/bin/pgbench/pgbench.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Fix pgbench's failure to honor the documented long-form option "
@ 2017-03-07 16:36 Tom Lane <tgl@sss.pgh.pa.us>
  2017-03-07 17:54 ` Re: pgsql: Fix pgbench's failure to honor the documented long-form option " Fabien COELHO <coelho@cri.ensmp.fr>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2017-03-07 16:36 UTC (permalink / raw)
  To: pgsql-committers

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

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/0e2c85d130b85549da469e8a16ee1c863e2f3da4

Modified Files
--------------
src/bin/pgbench/pgbench.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgsql: Fix pgbench's failure to honor the documented long-form option "
  2017-03-07 16:36 pgsql: Fix pgbench's failure to honor the documented long-form option " Tom Lane <tgl@sss.pgh.pa.us>
@ 2017-03-07 17:54 ` Fabien COELHO <coelho@cri.ensmp.fr>
  2017-03-10 03:09   ` Re: pgsql: Fix pgbench's failure to honor the documented long-form option " Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Fabien COELHO @ 2017-03-07 17:54 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers


> 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.

Argh, shame on me. I think at some point --tpc-b was an alias for the 
default script which then got replaced by builtin + name, but the 
implementation did not follow the upgrade:-( Sorry for the result.

-- 
Fabien.


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgsql: Fix pgbench's failure to honor the documented long-form option "
  2017-03-07 16:36 pgsql: Fix pgbench's failure to honor the documented long-form option " Tom Lane <tgl@sss.pgh.pa.us>
  2017-03-07 17:54 ` Re: pgsql: Fix pgbench's failure to honor the documented long-form option " Fabien COELHO <coelho@cri.ensmp.fr>
@ 2017-03-10 03:09   ` Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Alvaro Herrera @ 2017-03-10 03:09 UTC (permalink / raw)
  To: Fabien COELHO <coelho@cri.ensmp.fr>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-committers

Fabien COELHO wrote:
> 
> > 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.
> 
> Argh, shame on me. I think at some point --tpc-b was an alias for the
> default script which then got replaced by builtin + name, but the
> implementation did not follow the upgrade:-( Sorry for the result.

Ouch, this is terrible.  I was so focused on the actual feature that I
forgot to verify that the UI was sane.  I know I only tested using -b ...

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2017-03-10 03:09 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-03-07 16:36 pgsql: Fix pgbench's failure to honor the documented long-form option " Tom Lane <tgl@sss.pgh.pa.us>
2017-03-07 16:36 pgsql: Fix pgbench's failure to honor the documented long-form option " Tom Lane <tgl@sss.pgh.pa.us>
2017-03-07 17:54 ` Fabien COELHO <coelho@cri.ensmp.fr>
2017-03-10 03:09   ` Alvaro Herrera <alvherre@2ndquadrant.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox