Re: Patch to show individual statement latencies in pgbench output

Поиск
Список
Период
Сортировка
От Florian Pflug
Тема Re: Patch to show individual statement latencies in pgbench output
Дата
Msg-id 0D24F6DE-B36E-49C4-B281-F3F3AFAE0B69@phlo.org
обсуждение исходный текст
Ответ на Re: Patch to show individual statement latencies in pgbench output  (Greg Smith <greg@2ndquadrant.com>)
Ответы Re: Patch to show individual statement latencies in pgbench output  (Florian Pflug <fgp@phlo.org>)
Список pgsql-hackers
On Aug3, 2010, at 21:16 , Greg Smith wrote:
>> That was a leftover of the trimming and comment skipping logic, which my patch moves to process_command.
>
> I think there's still a trimming error here--line 195 of the new patch is now removing the declaration of "i" just
beforeit sets it to zero? 
Hm, I think it's just the diff thats miss-leading there. It correctly marks the "int i" line as "removed" with a "-",
butfor some reason marks the "i = 0" line (and its successors) with a "!", although they're removed too, and not
modified.

> On the coding standard side, I noticed all your for loops are missing a space between the for and the (; that should
getfixed. 
Fixed

>
> Finally, now that the rest of the patch is looking in good shape and is something I think is worth considering to
commit,it's time to work on the documentation SGML. 
I've added the "-r" option to the list of pgbench options in pgbench.sgml and also added a short section that shows how
theoutput looks like, similar to how things are done for the "-l" option. 

> Also:  when generating multiple versions of a patch like this, standard practice is to add something like "-vX" to
thenaming, so those of us trying to review can keep them straight. 
Will do from now on.

Updated patch is attached. I've also pushed this as branch "pgbench_statementlatency" to
git://github.com/fgp/postgres.git

best regards,
Florian Pflug

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dean Rasheed
Дата:
Сообщение: Proposal / proof of concept: Triggers on VIEWs
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Develop item from TODO list