Re: question about index cost estimates

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: question about index cost estimates
Дата
Msg-id 21989.958626148@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: question about index cost estimates  (Jeff Hoffmann <jeff@propertykey.com>)
Список pgsql-hackers
Jeff Hoffmann <jeff@propertykey.com> writes:
> it seems in the big picture, we're subject to the whims of the disk
> cache more than anything.

Ain't that the truth.  Maybe we ought to think about whether there's any
way to find out how big the kernel's disk cache is.  Even if it only
worked on some platforms, we'd be no worse off on the other ones...

> I'm assuming you're considering adding some sort of histogram to the
> stats that vacuum collects.  is that something that you're seriously
> considering or do you have another plan to introduce a useful concept
> of the distribution of an attribute?  the concept of making a
> histogram on a b-tree is pretty simple, but if you're going to do it,
> you should probably be taking into account r-trees, where you'd need a
> 2-d histogram making the job just a bit tougher.

I was considering a histogram for b-trees, but I have to admit I hadn't
thought about r-trees.  Seems like a 2-D histogram would be too bulky
to be feasible.  Could we get any mileage out of two 1-D histograms
(ie, examine the two coordinates independently)?  Or is that too
simplistic to be worth bothering with?
        regards, tom lane


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

Предыдущее
От: Jeff Hoffmann
Дата:
Сообщение: Re: question about index cost estimates
Следующее
От: Tom Lane
Дата:
Сообщение: Re: question about index cost estimates