Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 6667963422E for ; Fri, 29 May 2009 15:47:09 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 93183-04 for ; Fri, 29 May 2009 15:47:08 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f222.google.com (mail-fx0-f222.google.com [209.85.220.222]) by mail.postgresql.org (Postfix) with ESMTP id ED5B36341AD for ; Fri, 29 May 2009 15:47:07 -0300 (ADT) Received: by fxm22 with SMTP id 22so6657574fxm.19 for ; Fri, 29 May 2009 11:47:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=tKydTDV5bcT6EpPede3S7MDJhcGZR8xmZ3Un46w6n2A=; b=MyYyvHFzrZYGIFw5ttDuXVAGIaL4Sd9fhXINdWpmZH1seKZZ8Q5RtPdpBQ7N0M3f4F tuqMi8wX/ajEYqAJajF2LdUTM694EjeoSIz6JW9MZtMaCYHUims6YBMntli1QaNkRHKw xe5iX72hnZ9nAeUQvSFHuK12kgL4FSOcp7gic= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=SaA4C0t9z3RhrNgYjY+Ffhwu2bTIMPQWbU17dSiRxkmPkHMhP31GXSD3BP2TXyfiHG 1lLEGWpqJEvUPdtiwuY2lIliL4rdRU5FoKSDN0MG7/IKtN4zJ0f2HUHJKkLT8jlBEFzZ hRMNm05dNjPGkpAA9kvPT/XluI+sTOh0eWEc4= MIME-Version: 1.0 Received: by 10.204.77.78 with SMTP id f14mr2649634bkk.76.1243622363566; Fri, 29 May 2009 11:39:23 -0700 (PDT) In-Reply-To: <21013.1243618236@sss.pgh.pa.us> References: <603c8f070905281830g2e5419c4xad2946d149e21f9d@mail.gmail.com> <4A1F4FD5.7060204@timbira.com> <603c8f070905282012h7eb2210btb808f623a2757de0@mail.gmail.com> <20090529041623.GE15201@eddie> <21013.1243618236@sss.pgh.pa.us> Date: Fri, 29 May 2009 14:39:23 -0400 Message-ID: <603c8f070905291139m44c7a975h4e12d30749c0a6df@mail.gmail.com> Subject: Re: explain analyze rows=%.0f From: Robert Haas To: Tom Lane Cc: Joshua Tolley , Euler Taveira de Oliveira , "pgsql-hackers@postgresql.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200905/1428 X-Sequence-Number: 138970 On Fri, May 29, 2009 at 1:30 PM, Tom Lane wrote: > Joshua Tolley writes: >> On Thu, May 28, 2009 at 11:12:42PM -0400, Robert Haas wrote: >>> On Thu, May 28, 2009 at 11:00 PM, Euler Taveira de Oliveira >>>> Don't you think is too strange having, for example, 6.67 rows? >>> >>> No stranger than having it say 7 when it's really not. =A0Actually mine >>> mostly come out 1 when the real value is somewhere between 0.5 and >>> 1.49. =A0:-( > >> +1. It would help users realize more quickly that some of the values in = the >> EXPLAIN output are, for instance, *average* number of rows *per iteratio= n* of a >> nested loop, say, rather than total rows found in all loops. > > I think it would only be sensible to show fractional digits if nloops is > greater than 1. =A0Otherwise the value must in fact be an integer, and > you're just going to confuse people more by suggesting that it might not > be. That might be over-engineering, but I'll take it. ...Robert