Inconsistent style in pgbench's error messages - Mailing list pgsql-hackers

From Tom Lane
Subject Inconsistent style in pgbench's error messages
Date
Msg-id 22280.1436139973@sss.pgh.pa.us
Whole thread Raw
Responses Re: Inconsistent style in pgbench's error messages
Re: Inconsistent style in pgbench's error messages
List pgsql-hackers
I made a pass over pgbench's error messages to try to make them meet
project style guidelines.  There was one rather large bit of inconsistency
that I didn't try to fix, though: something like half of the messages
prepend "pgbench: " to the front, but the other half don't.  Worse yet,
some of the other half prepend other things like metacommand names, which
seems quite confusing if you're expecting the former convention.

I'd like to see that become consistent, but I am not sure which way we
want to jump.  Personally I think "pgbench: " adds very little and so
I'd rather get rid of it, but I'm sure others feel differently.

Another issue here is that when dealing with custom scripts, IMO it would
be really helpful to provide the file name, line number, and perhaps line
text whenever a message is about an identifiable command.  That's mostly
not happening at present, except for the aforesaid inconsistent mentions
of metacommand names.  To make that happen, we'd need to agree on a
formatting convention for attaching the info.  I'd be inclined to put it
on a separate line, but beyond that have no specific thoughts.

Comments?
        regards, tom lane



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: raw output from copy
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Inconsistent style in pgbench's error messages