Re: hash index improving v3

Поиск
Список
Период
Сортировка
Искать
От
Simon Riggs
Тема
Re: hash index improving v3
Дата
Msg-id
1222175115.4445.344.camel@ebony.2ndQuadrant
Ответ на
Список
Дерево обсуждения
hash index improving v3 "Xiao Meng" <mx.cogito@gmail.com>
Re: hash index improving v3 Simon Riggs <simon@2ndQuadrant.com>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 "Jonah H. Harris" <jonah.harris@gmail.com>
Re: hash index improving v3 Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 Kenneth Marshall <ktm@rice.edu>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 Kenneth Marshall <ktm@rice.edu>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 Kenneth Marshall <ktm@rice.edu>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 Kenneth Marshall <ktm@rice.edu>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 "Jonah H. Harris" <jonah.harris@gmail.com>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 Simon Riggs <simon@2ndQuadrant.com>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 Simon Riggs <simon@2ndQuadrant.com>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 Simon Riggs <simon@2ndQuadrant.com>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 Simon Riggs <simon@2ndQuadrant.com>
Re: hash index improving v3 Simon Riggs <simon@2ndQuadrant.com>
Re: hash index improving v3 Bruce Momjian <bruce@momjian.us>
Re: hash index improving v3 Simon Riggs <simon@2ndQuadrant.com>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: hash index improving v3 "Alex Hunsaker" <badalex@gmail.com>
Re: hash index improving v3 Tom Lane <tgl@sss.pgh.pa.us>
Re: hash index improving v3 "Xiao Meng" <mx.cogito@gmail.com>

On Tue, 2008-09-23 at 08:16 -0400, Tom Lane wrote:
> Simon Riggs  writes:
> > maintenance_work_mem is already used for 3 separate operations that bear
> > little resemblance to each other. If it's appropriate for all of those
> > then its appropriate for this usage also.
> 
> No, it isn't.
> 
> The fundamental point here is that this isn't a memory allocation
> parameter; it's a switchover threshold between two different behaviors.

That's a little confusing since sorts switch their behaviour also, but
use (some form of) work_mem, which is *also* their max allocation. I see
the difficulty in understanding the algorithm's behaviour now.

So shared_buffers is the wrong parameter, but even if we had a parameter
it would be very difficult to set it. 

Thinks: Why not just sort all of the time and skip the debate entirely?
I thought the main use case was for larger indexes, since that's when
the number of levels in the index is significantly less than btrees? Do
we need to optimise creation time of smaller hash indexes at all?

-- 
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Training, Services and Support

В списке pgsql-patches по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: hash index improving v3
От: Tom Lane
Дата:
Сообщение: Re: hash index improving v3
FAQ