Re: [PATCH] add long options to pgbench (submission 1)

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: fabriziomello(at)gmail(dot)com, Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] add long options to pgbench (submission 1)
Date: 2013-06-25 16:38:47
Message-ID: CA+TgmoYFYT=fqDn=hL6b6kOYen5YfraPX0yA5SyPEAMuWgakDw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jun 25, 2013 at 12:17 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>> I would like to solicit opinions on whether this is a good idea. I
>> understand that the patch author thinks it's a good idea, and I don't
>> have a strong position either way. But I want to hear what other
>> people think.
>
> If it makes pgbench more consistent with psql's command line options,
> it seems reasonable to me.

OK, I think it does that. So that's three votes in favor and none
opposed. I think I'd like to quibble with some of the names a bit,
though. The patch adds --fill-factor, but I think we should spell it
without the hyphen: --fillfactor. I think --quiet-log should be
spelled --quiet. I think --connect for each connection is not very
descriptive; maybe --connection-per-transaction or something, although
that's kind of long. I think -M should be aliased to --protocol, not
--query-mode. --skip-some-update is incorrectly pluralized; if that's
what we're going to use, it should be --skip-some-updates.
Alternatively, we could use --update-large-tables-only, which might
make the intent more clear.

On another note, it doesn't look like this updates the output of
pgbench --help, which seems important.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2013-06-25 16:52:40 Re: pg_filedump 9.3: checksums (and a few other fixes)
Previous Message Robert Haas 2013-06-25 16:22:31 Re: pluggable compression support