Prev: I: [HACKERS] About "Our CLUSTER implementation is pessimal" patch
Next: [HACKERS] log_error_verbosity placement
From: Greg Stark on 9 Feb 2010 14:50 I was recently experimenting with explain analyze and I realized there are two things arguably wrong with the "Buffers" output in explain analyze: Firstly, it's printing out a number of buffers. We spent a lot of effort making all GUC variables use units of memory like "kB" and "MB" so the user should never have to be doing arithmetic in units of buffers. I think these values should be printed in similar units. Heikki did express concern that sometimes users want to know iops but there's no real way for us to report iops since even random reads might not really be random and they might be from cache. Whereas the amount of memory is always a meaningful number. I already have a patch to do this but it's a bit grotty -- do we want to have a generic format string in snprintf in case we need it somewhere else other than explain.c? Secondly, I think it's printing the total buffer usage for that node across the whole query -- not the average per iteration. I agree that the average is probably more confusing but it's what we do for every other stat. Do we want to be consistent? Call out the inconsistency somehow, perhaps by tagging it "Total Buffer Usage:" or something like that? -- greg -- Sent via pgsql-hackers mailing list (pgsql-hackers(a)postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers |