From: | Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-performance(at)postgresql(dot)org, Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com> |
Subject: | Re: What about utility to calculate planner cost constants? |
Date: | 2005-03-22 22:59:44 |
Message-ID: | 4240A360.1030904@cheapcomplexdevices.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Tom Lane wrote:
>
> And you can't just dismiss the issue of wrong cost models and say we can
> get numbers anyway.
Is there a way to see more details about the cost estimates.
EXPLAIN ANALYZE seems to show the total time and rows; but not
information like how many disk pages were accessed.
I get the feeling that sometimes the number of rows is estimated
very well, but the amount of disk I/O is way off.
Sometimes the number of pages read/written is grossly
overestimated (if tables lave a lot of locally clustered data)
or underestimated if a sort barely exceeds sort_mem.
Perhaps an EXPLAN ANALYZE VERBOSE that would add info like this:
Index scan ([...]estimated 1000 pages read) (actual[...] 10 pages read)
would help track those down?
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Mayer | 2005-03-22 23:08:39 | Re: Planner issue |
Previous Message | Dave Held | 2005-03-22 22:33:41 | Re: What about utility to calculate planner cost constants? |