Re: Patch to show individual statement latencies in pgbench output
Florian G. Pflug <fgp@phlo.org>
From: Florian Pflug <fgp@phlo.org>
To: Greg Smith <greg@2ndquadrant.com>
Cc: PostgreSQL-development hackers <pgsql-hackers@postgresql.org>
Date: 2010-08-05T22:05:24Z
Lists: pgsql-hackers
Attachments
- pgbench_statementlatency_v4.patch (application/octet-stream) patch v4
On Aug4, 2010, at 13:58 , Florian Pflug wrote: > 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 before it 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 "-", but for 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 get fixed. > Fixed Crap. I've messed up to the effect that the for-loop formatting fix wasn't actually in the patch. Attached is an updated version (v4). Sorry for the noise. best regards, Florian Pflug