Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 8D28B632701 for ; Tue, 2 Jun 2009 00:37:33 -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 67857-07 for ; Tue, 2 Jun 2009 00:37:32 -0300 (ADT) X-Greylist: delayed 00:06:40.062066 by SQLgrey-1.7.6 Received: from smtp103.biz.mail.re2.yahoo.com (smtp103.biz.mail.re2.yahoo.com [68.142.229.217]) by mail.postgresql.org (Postfix) with SMTP id 28C4D6322B5 for ; Tue, 2 Jun 2009 00:37:32 -0300 (ADT) Received: (qmail 58503 invoked from network); 2 Jun 2009 03:30:50 -0000 Received: from unknown (HELO ?192.168.5.110?) (rm_pg@75.36.180.107 with plain) by smtp103.biz.mail.re2.yahoo.com with SMTP; 2 Jun 2009 03:30:50 -0000 X-Yahoo-SMTP: acjdBE2swBAAX9ja0RY4hQi0ggqg.Ml3.omUEQJ1xZsuGIb6CRE- X-YMail-OSG: Y8iHsbwVM1m87TmvL5M6ntQrUU4jmObdyGiXcxOomDfP9AIXvZwvFeklwhGgQZAWWT1RM.6sPuaM2MYGFs7mWhFdhacSH4iZO.3Kw9HLl2rnbfzgvH83L_gY6Ol8BoL40Rh89uYEfAET3I_TdFh_B3qmv1LiZHBloOE_AyJ787oUnXKbU1tnnFKtfs4QU5lxJBbO8h05GM4pLEk3SP6is0UGOi9.3GWSqusYDNEE85TWeocQs__fsVphLcuANmnKksdczXerldVrQ8byvzIdKfDXOfuDLIzgAfBAuVB3Me7O2FjANdwouu20slKNQm.BC3faIQ-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4A249CE9.6050708@cheapcomplexdevices.com> Date: Mon, 01 Jun 2009 20:30:49 -0700 From: Ron Mayer User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: Euler Taveira de Oliveira CC: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: explain analyze rows=%.0f References: <603c8f070905281830g2e5419c4xad2946d149e21f9d@mail.gmail.com> <4A1F4FD5.7060204@timbira.com> In-Reply-To: <4A1F4FD5.7060204@timbira.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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/109 X-Sequence-Number: 139164 Euler Taveira de Oliveira wrote: > Robert Haas escreveu: >> ...EXPLAIN ANALYZE reports the number of rows as an integer... Any >> chance we could reconsider this decision? I 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? I would confuse > users and programs that parses the EXPLAIN output. However, I wouldn't object I don't think it's that confusing. If it says "0.1 rows", I imagine most people would infer that this means "typically 0, but sometimes 1 or a few" rows. 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?