Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A84786332F5 for ; Thu, 28 May 2009 22:30:17 -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 02844-07 for ; Thu, 28 May 2009 22:30:16 -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 45FC26321D9 for ; Thu, 28 May 2009 22:30:16 -0300 (ADT) Received: by fxm22 with SMTP id 22so6148357fxm.19 for ; Thu, 28 May 2009 18:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=ksEJvl9q0lE/BwsO36Wa8zf+hjxUYyHrToUIR/2Wcx0=; b=Ed7NamETjA55z5UObYFOzd8IAN1xpiifRDRv+6qKOAOKupez7HXzG/johrcLhV9zNS 6Rv5DSz4pUqcyG0FAoJrNjr7fhY8iX06RZ8YCR7fcAu8fOT+6vIDObUAp6YTOmjVCWK1 OpBugzZcC72k7GyLRIMmtNTYduIQCgnS7DNQc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=ryhmpEhf1DB5pqvB6P8wjYT32HmHqKKTN27iWuNZW6ank5DAsGcQ61DhD8NIVyhWF6 h6wlWWVRxCJg9xWzmC8/M6wOLCnRL3ZQcfUQ5BbB0apSHeKjw/NrociKjOw+V1yuvLi2 1gEQQ3fK1Nk5NWmhHyqdKRfc0D6rWMjUgnY6o= MIME-Version: 1.0 Received: by 10.204.67.66 with SMTP id q2mr1813251bki.166.1243560614369; Thu, 28 May 2009 18:30:14 -0700 (PDT) Date: Thu, 28 May 2009 21:30:14 -0400 Message-ID: <603c8f070905281830g2e5419c4xad2946d149e21f9d@mail.gmail.com> Subject: explain analyze rows=%.0f From: Robert Haas To: "pgsql-hackers@postgresql.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/1362 X-Sequence-Number: 138904 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. 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. (Before someone mentions it, yes that would be a good thing to include in XML-formatted explain output. But I don't see that including a couple of decimal places would hurt the text output format either.) ...Robert