Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 9F04D6340EE for ; Tue, 2 Jun 2009 10:37: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 33692-02-6 for ; Tue, 2 Jun 2009 10:37:41 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail137128.authsmtp.com (outmail137128.authsmtp.com [62.13.137.128]) by mail.postgresql.org (Postfix) with ESMTP id 444486351A1 for ; Tue, 2 Jun 2009 10:37:34 -0300 (ADT) Received: from mail-c193.authsmtp.com (mail-c193.authsmtp.com [62.13.128.118]) by punt6.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n52DbUl1041020; Tue, 2 Jun 2009 14:37:30 +0100 (BST) Received: from [10.10.100.242] (h174193.upc-h.chello.nl [62.194.174.193]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id n52DbTHZ008331; Tue, 2 Jun 2009 14:37:29 +0100 (BST) Subject: Re: explain analyze rows=%.0f From: Simon Riggs To: Ron Mayer Cc: Euler Taveira de Oliveira , Robert Haas , "pgsql-hackers@postgresql.org" In-Reply-To: <4A249CE9.6050708@cheapcomplexdevices.com> References: <603c8f070905281830g2e5419c4xad2946d149e21f9d@mail.gmail.com> <4A1F4FD5.7060204@timbira.com> <4A249CE9.6050708@cheapcomplexdevices.com> Content-Type: text/plain Date: Tue, 02 Jun 2009 14:41:00 +0100 Message-Id: <1243950060.23910.58.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: 84c7cff9-4f7a-11de-98d8-002264978518 X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksachtFaAdbZ0xf HGQLW11EUVl7WmR/ aAofawdDY0NKQQRt VFZIS1FNFgBqBAMB SEAbUG0gE30seH54 ZkVjEHFYVEw0fUIu RR0CQ2QbYTFnOX0e URQNagpcJAtXfh9H aFZ7XXQFZGQPKBg1 TUcAHxkaHhhlExEd TxEVKVsTRw4CGDc4 VgIPVS8oAlZQCmNr IXQn X-Authentic-SMTP: 61633235383639.pelican.dmpriest.net.uk:1562/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system. 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: 200906/132 X-Sequence-Number: 139187 On Mon, 2009-06-01 at 20:30 -0700, Ron Mayer wrote: > What I'd find strange about "6.67 rows" in your example is more that on > the estimated rows side, it seems to imply an unrealistically precise estimate > in the same way that "667 rows" would seem unrealistically precise to me. > Maybe rounding to 2 significant digits would reduce confusion? You're right that the number of significant digits already exceeds the true accuracy of the computation. I think what Robert wants to see is the exact value used in the calc, so the estimates can be checked more thoroughly than is currently possible. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support