Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 90841633A6B for ; Fri, 29 May 2009 14:30:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 90250-08 for ; Fri, 29 May 2009 14:30:44 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 20F08630733 for ; Fri, 29 May 2009 14:30:44 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id n4THUaTj021014; Fri, 29 May 2009 13:30:36 -0400 (EDT) To: Joshua Tolley cc: Robert Haas , Euler Taveira de Oliveira , "pgsql-hackers@postgresql.org" Subject: Re: explain analyze rows=%.0f In-reply-to: <20090529041623.GE15201@eddie> References: <603c8f070905281830g2e5419c4xad2946d149e21f9d@mail.gmail.com> <4A1F4FD5.7060204@timbira.com> <603c8f070905282012h7eb2210btb808f623a2757de0@mail.gmail.com> <20090529041623.GE15201@eddie> Comments: In-reply-to Joshua Tolley message dated "Thu, 28 May 2009 22:16:23 -0600" Date: Fri, 29 May 2009 13:30:36 -0400 Message-ID: <21013.1243618236@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.117 tagged_above=0 required=5 tests=AWL=0.117 X-Spam-Level: X-Archive-Number: 200905/1418 X-Sequence-Number: 138960 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. Actually mine >> mostly come out 1 when the real value is somewhere between 0.5 and >> 1.49. :-( > +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 iteration* 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. Otherwise the value must in fact be an integer, and you're just going to confuse people more by suggesting that it might not be. regards, tom lane