Re: Simple postgresql.conf wizard -- Statistics idea...

Поиск
Список
Период
Сортировка
От Decibel!
Тема Re: Simple postgresql.conf wizard -- Statistics idea...
Дата
Msg-id B6A275EE-8184-4073-9A0F-5B7A7B7000F9@decibel.org
обсуждение исходный текст
Ответ на Re: Simple postgresql.conf wizard -- Statistics idea...  ("Dann Corbit" <DCorbit@connx.com>)
Список pgsql-hackers
On Nov 25, 2008, at 8:59 PM, Dann Corbit wrote:
> It is a simple matter to calculate lots of interesting univarate  
> summary
> statistics with a single pass over the data (perhaps during a vacuum
> full).


I don't think that the problem we have is how to collect statistics  
(well, except for cross-field stuff); the problem is what to actually  
do with them. What we need people to look at is how we can improve  
query plan estimates across the board. Row count estimates, page  
access estimates, the cost estimates for accessing those pages, etc.  
This isn't a coding problem, it's an algorithm problem. It needs  
someone with an advanced (if not expert) grasp of statistics who can  
come up with better ways of estimating these things.

So, if you have a statistics hammer to wield, I think you'll find a  
lot of nails sticking up in the planner code. Hammer on those before  
worrying about additional stats to collect. :)
-- 
Decibel!, aka Jim C. Nasby, Database Architect  decibel@decibel.org
Give your computer some brain candy! www.distributed.net Team #1828




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: Logging auto_explain outputs to another log file
Следующее
От: Decibel!
Дата:
Сообщение: Re: Simple postgresql.conf wizard