Re: Unfortunate choice of short switch name in pgbench

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Developers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: Unfortunate choice of short switch name in pgbench
Date: 2014-02-27 13:54:54
Message-ID: 20140227135454.GM4759@eldon.alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Fabien COELHO wrote:

> >I just wasted some time puzzling over strange results from pgbench.
> >I eventually realized that I'd been testing against the wrong server,
> >because rather than "-p 65432" I'd typed "-P 65432", thereby invoking
> >the recently added --progress option. pgbench has no way to know that
> >that isn't what I meant; the fact that both switches take integer
> >arguments doesn't help.
>
> ISTM that this is an unfortunate but unlikely mistake, as "-p" is
> used in all postgresql commands to signify the port number (psql,
> pg_dump, pg_basebackup, createdb, ...).

Plus other tools already use -P for progress, such as rsync.

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2014-02-27 14:34:36 Re: Another possible corruption bug in 9.3.2 or possibly a known MultiXact problem?
Previous Message Michael Paquier 2014-02-27 13:12:23 Defining macro LSNOID for pg_lsn in pg_type.h