Re: BUG #12379: pgbench should hint to pgbench -i - Mailing list pgsql-bugs

From Fabien COELHO
Subject Re: BUG #12379: pgbench should hint to pgbench -i
Date
Msg-id alpine.DEB.2.10.1505211323240.14769@sto
Whole thread Raw
In response to Re: BUG #12379: pgbench should hint to pgbench -i  ("Shulgin, Oleksandr" <oleksandr.shulgin@zalando.de>)
List pgsql-bugs
>>>>  HINT:  is "foo" the right database? did you initialize first (pgbench -i)?

>>>  Is "doo" the right database? Did you initialize it first (pgbench -i)?

>>  HINT (pgbench):  Is "foo" the right database? Did you initialize (-i) first?

>>  pgbench:  ...

>>  pgbench HINT:  ...

> Well, prefixing with "<binaryname>: " makes sense to me in the general
> case.  But would it not be odd to do that for this message, and not the
> whole lot of the rest of stuff pgbench can print to stderr, which are not
> fatal errors, that is: hints?

Sure, it would not be strictly homogeneous with other stuff.

On the other hand, ISTM desirable that the "hint"ness quality of the
message is clear, because this is directly actionnable help, where other
messages just report a failure (cannot open log file, failed to set timer,
whatever), but do not provide much help for solving it, so I would rather
keep something with the "hint" word somewhere.

--
Fabien.

pgsql-bugs by date:

Previous
From: "Shulgin, Oleksandr"
Date:
Subject: Re: BUG #12379: pgbench should hint to pgbench -i
Next
From: ksharma6@metlife.com
Date:
Subject: BUG #13324: Database returing incorrect results on querying slect clause