Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 00927633A6B for ; Fri, 29 May 2009 00:12:45 -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 29878-08 for ; Fri, 29 May 2009 00:12:43 -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 8A093632803 for ; Fri, 29 May 2009 00:12:43 -0300 (ADT) Received: by fxm22 with SMTP id 22so6178375fxm.19 for ; Thu, 28 May 2009 20:12:42 -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=0EPXAtv7IxSI91rKzR8ZPVbqzDgSEpChHkXG8MePajU=; b=T9Kec/d/s+lVM7J01i9JbQ0It8bp9vC5t76OOqKsylJOD8hrjx6r0l1X8aPFqoRvTK 7rioRLBrPDGCqo/IQiVJ7LpN2c6G53cs2D9O25kQTeo60hzTbLjEWHAx5F/6Lf42d/Os uCFPwcRv1/AID5eOEstbqe/TF8YF1h5X1c+V0= 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=cxnsLWAOVpyw21+RYiVXCoGMHGFJXJWvSOUh/QQ0mjd+dLNfuXty3Jj8GBo1IWFjZK Kj3wyq2WGZFRtM6CfqlfU5yjNUXRHK5MA/ySffu3CZUPM5RgYCjYXrMfz5ed78k9iF67 uNc9wmJgLi3yf9X8LakOtBy5BnRJx4e4G2h7w= MIME-Version: 1.0 Received: by 10.204.114.136 with SMTP id e8mr1821698bkq.190.1243566762144; Thu, 28 May 2009 20:12:42 -0700 (PDT) In-Reply-To: <4A1F4FD5.7060204@timbira.com> References: <603c8f070905281830g2e5419c4xad2946d149e21f9d@mail.gmail.com> <4A1F4FD5.7060204@timbira.com> Date: Thu, 28 May 2009 23:12:42 -0400 Message-ID: <603c8f070905282012h7eb2210btb808f623a2757de0@mail.gmail.com> Subject: Re: explain analyze rows=%.0f From: Robert Haas To: Euler Taveira de Oliveira Cc: "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/1366 X-Sequence-Number: 138908 On Thu, May 28, 2009 at 11:00 PM, Euler Taveira de Oliveira wrote: > Robert Haas escreveu: >> I have always assumed that there is some very good reason why EXPLAIN >> ANALYZE reports the number of rows as an integer rather than a >> floating point value, but in reading explain.c it seems that the >> reason is just that we decided to round to zero decimal places. =A0Any >> chance we could reconsider this decision? =A0I often find myself wanting >> to know the value that is here called ntuples, but rounding >> ntuples/nloops off to the nearest integer loses too much precision. >> > 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. :-( ...Robert