Inconsistent style in pgbench's error messages

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Inconsistent style in pgbench's error messages
Дата
Msg-id 22280.1436139973@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: Inconsistent style in pgbench's error messages  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: Inconsistent style in pgbench's error messages  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список 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 по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: raw output from copy
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Inconsistent style in pgbench's error messages