Thanks Dave and Craig for you input.

Does anyone know what the three durations specifically represent? Presumably two of them are the time to prepare and execute the statement? What's the third? Is the overall execution time the sum of the three (or two in some cases)?

It would be useful to have one summary time for the overall execution of each statement as before. We wrote a little Java program which analyses log file based on a statement followed by single duration (and outputs the most frequent, the slowest and most costly queries). We could rewrite the program to cope with the new format if needs be but if we can get a single duration it would save us some work. I don't mind using prepared statements if there really is no overhead and I can fully understand what each part of the new log format is.

Alex Stanier.

On 17/09/2012 06:15, Craig Ringer wrote:
On 09/14/2012 03:24 AM, Dave Cramer wrote:
Yes, the new driver uses V3 protocol which uses prepared statements,
named and un-named. I think the 3 durations may be due to the prepare
and execute.

I noticed this as well, and wasn't entirely thrilled with the effects on logging.

I wonder if Pg can be convinced to suppress the non-execution times, or merge them to report a single statement execution time. I'll poke -hackers.

--
Craig Ringer



This email has been scanned for viruses by Blackspider's Mail Control System. For more information please visit http://www.blackspider.com 



This message has been scanned for malware by SurfControl plc. www.surfcontrol.com