Re: explain analyze rows=%.0f - Mailing list pgsql-hackers

From Robert Haas
Subject Re: explain analyze rows=%.0f
Date
Msg-id 603c8f070905282012h7eb2210btb808f623a2757de0@mail.gmail.com
Whole thread Raw
In response to Re: explain analyze rows=%.0f  (Euler Taveira de Oliveira <euler@timbira.com>)
Responses Re: explain analyze rows=%.0f  (Joshua Tolley <eggyknap@gmail.com>)
List pgsql-hackers
On Thu, May 28, 2009 at 11:00 PM, Euler Taveira de Oliveira
<euler@timbira.com> 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.  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?

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


pgsql-hackers by date:

Previous
From: Euler Taveira de Oliveira
Date:
Subject: Re: explain analyze rows=%.0f
Next
From: Bruce Momjian
Date:
Subject: Re: Unicode string literals versus the world