Re: Patch to show individual statement latencies in pgbench output - Mailing list pgsql-hackers

From Florian Pflug
Subject Re: Patch to show individual statement latencies in pgbench output
Date
Msg-id CF8033D9-741C-438A-9D96-D41F1C47B491@phlo.org
Whole thread Raw
In response to Re: Patch to show individual statement latencies in pgbench output  (Florian Pflug <fgp@phlo.org>)
Responses Re: Patch to show individual statement latencies in pgbench output
List pgsql-hackers
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
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

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

Attachment

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: PL/pgSQL EXECUTE '..' USING with unknown
Next
From: Tom Lane
Date:
Subject: Re: PL/pgSQL EXECUTE '..' USING with unknown