Re: pgbench --startup option

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgbench --startup option
Date: 2013-05-02 18:25:30
Message-ID: alpine.DEB.2.02.1305022022470.9292@localhost6.localdomain6
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


I've just done a quick review of the source, as I've been hacking in
pgbench myself.

I think that the feature makes sense.

About the details of the patch:

(1) Some changes in the patch are unrelated to the purpose of the patch
(e.g. spacing changes, error message...), and should be removed?

(2) Instead adding a new function, I would suggest to modify the existing
one with an added argument, which would be ignored when NULL is passed.

(3) I'm not sure of the behavior of the feature. What if two statements
are required, should it not be able to handle multiple --startup
specifications, say with an array instead of a scalar?

(4) C style: there is no need to put a ";" after "}".

(5) In the documentation, other options do not put a "=" sign between the
option and its argument, although it is also accepted.

Have a nice day,

--
Fabien.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2013-05-02 18:37:07 Re: GSOC13 proposal - extend RETURNING syntax
Previous Message Fabien COELHO 2013-05-02 17:59:40 [PATCH] add long options to pgbench (submission 1)