From: gsmith Date: Thu, 18 Mar 2010 23:55:15 +0000 (-0400) Subject: Grouped fastest result list usefully X-Git-Tag: v0.6.0~5 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=9255d821ec90d1020354e7b04d2243e01fc6535c;p=pgbench-tools.git Grouped fastest result list usefully --- diff --git a/fastest.sql b/fastest.sql index ddda640..ce333be 100644 --- a/fastest.sql +++ b/fastest.sql @@ -1,5 +1,12 @@ SELECT set,script,scale,clients,workers, - round(tps) as tps -FROM tests + round(tps) AS tps +FROM +( + SELECT + set,script,scale,clients,workers, + max(tps) AS tps + FROM tests + GROUP BY set,script,scale,clients,workers +) AS grouped ORDER BY tps DESC LIMIT 20;