Re: explain analyze rows=%.0f
Ron Mayer <rm_pg@cheapcomplexdevices.com>
From: Ron Mayer <rm_pg@cheapcomplexdevices.com>
To: Euler Taveira de Oliveira <euler@timbira.com>
Cc: Robert Haas <robertmhaas@gmail.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2009-06-02T03:30:49Z
Lists: pgsql-hackers
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?
Commits
-
EXPLAIN: Always use two fractional digits for row counts.
- 95dbd827f2ed 18.0 landed
-
Adjust EXPLAIN test case to filter out "Actual Rows" values.
- 44cbba9a7f51 18.0 cited
-
Allow EXPLAIN to indicate fractional rows.
- ddb17e387aa2 18.0 landed
-
Fix pgbench performance issue induced by commit af35fe501.
- fb056564ec5b 18.0 cited