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

From Robert Haas
Subject explain analyze rows=%.0f
Date
Msg-id 603c8f070905281830g2e5419c4xad2946d149e21f9d@mail.gmail.com
Whole thread Raw
Responses Re: explain analyze rows=%.0f  (Euler Taveira de Oliveira <euler@timbira.com>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: bytea vs. pg_dump
Next
From: Greg Smith
Date:
Subject: Re: pg_migrator and an 8.3-compatible tsvector data type