Re: merge>hash>loop

Поиск
Список
Период
Сортировка
Искать
От
Jim C. Nasby
Тема
Re: merge>hash>loop
Дата
Msg-id
20060419051835.GR49405@pervasive.com
Ответ на
Re: merge>hash>loop (Mark Kirkwood)
Список
Дерево обсуждения
merge>hash>loop Ian Westmacott <ianw@intellivid.com>
Re: merge>hash>loop Tom Lane <tgl@sss.pgh.pa.us>
Re: merge>hash>loop Ian Westmacott <ianw@intellivid.com>
Re: merge>hash>loop Tom Lane <tgl@sss.pgh.pa.us>
Re: merge>hash>loop Markus Schaber <schabi@logix-tt.com>
Re: merge>hash>loop Tom Lane <tgl@sss.pgh.pa.us>
Re: merge>hash>loop "Jim C. Nasby" <jnasby@pervasive.com>
Re: merge>hash>loop "Jim C. Nasby" <jnasby@pervasive.com>
Re: merge>hash>loop Tom Lane <tgl@sss.pgh.pa.us>
Re: merge>hash>loop "Jim C. Nasby" <jnasby@pervasive.com>
Re: merge>hash>loop Mark Kirkwood <markir@paradise.net.nz>
Re: merge>hash>loop "Jim C. Nasby" <jnasby@pervasive.com>
Re: merge>hash>loop Tom Lane <tgl@sss.pgh.pa.us>
Re: merge>hash>loop "Jim C. Nasby" <jnasby@pervasive.com>
Re: merge>hash>loop Mark Kirkwood <markir@paradise.net.nz>
Re: merge>hash>loop Tom Lane <tgl@sss.pgh.pa.us>
On Wed, Apr 19, 2006 at 04:47:40PM +1200, Mark Kirkwood wrote:
> Jim C. Nasby wrote:
> >On Tue, Apr 18, 2006 at 06:22:26PM -0400, Tom Lane wrote:
> >>"Jim C. Nasby"  writes:
> >>>Actually, if you run with stats_block_level turned on you have a
> >>>first-order approximation of what is and isn't cached.
> >>Only if those stats decayed (pretty fast) with time; which they don't.
> >
> >Good point. :/ I'm guessing there's no easy way to see how many blocks
> >for a given relation are in shared memory, either...
> 
> contrib/pg_buffercache will tell you this - what buffers from what 
> relation are in shared_buffers (if you want to interrogate the os file 

So theoretically with that code we could make the cost estimator
functions more intelligent about actual query costs. Now, how you'd
actually see how those estimates improved...

> buffer cache, that's a different story - tho I've been toying with doing 
> a utility for  Freebsd that would do this).

Well, the problem is that I doubt anything that OS-specific would be
accepted into core. What we really need is some method that's
OS-agnostic...
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461
В списке pgsql-performance по дате отправления
От: Jim C. Nasby
Дата:
От: Tom Lane
Дата:
Сообщение: Re: merge>hash>loop
FAQ