Re: GIN fast insert

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: GIN fast insert
Дата
Msg-id
27040.1235505385@sss.pgh.pa.us
Ответ на
Re: GIN fast insert (Jeff Davis)
Список
Дерево обсуждения
GIN fast insert Teodor Sigaev <teodor@sigaev.ru>
Re: GIN fast insert Tom Lane <tgl@sss.pgh.pa.us>
Re: GIN fast insert Teodor Sigaev <teodor@sigaev.ru>
Re: GIN fast insert Tom Lane <tgl@sss.pgh.pa.us>
Re: GIN fast insert Teodor Sigaev <teodor@sigaev.ru>
Re: GIN fast insert Tom Lane <tgl@sss.pgh.pa.us>
Re: GIN fast insert Josh Berkus <josh@agliodbs.com>
Re: GIN fast insert David Fetter <david@fetter.org>
Re: GIN fast insert Robert Haas <robertmhaas@gmail.com>
Re: GIN fast insert Teodor Sigaev <teodor@sigaev.ru>
Re: GIN fast insert Robert Haas <robertmhaas@gmail.com>
Re: GIN fast insert Simon Riggs <simon@2ndQuadrant.com>
Re: GIN fast insert Teodor Sigaev <teodor@sigaev.ru>
Re: GIN fast insert Robert Haas <robertmhaas@gmail.com>
Re: GIN fast insert Tom Lane <tgl@sss.pgh.pa.us>
Re: GIN fast insert Robert Haas <robertmhaas@gmail.com>
Re: GIN fast insert Tom Lane <tgl@sss.pgh.pa.us>
Re: GIN fast insert Robert Haas <robertmhaas@gmail.com>
Re: GIN fast insert Jeff Davis <pgsql@j-davis.com>
Re: GIN fast insert Tom Lane <tgl@sss.pgh.pa.us>
Re: GIN fast insert Robert Haas <robertmhaas@gmail.com>
Re: GIN fast insert Teodor Sigaev <teodor@sigaev.ru>
Re: GIN fast insert Robert Haas <robertmhaas@gmail.com>
Re: GIN fast insert Tom Lane <tgl@sss.pgh.pa.us>
Re: GIN fast insert Robert Haas <robertmhaas@gmail.com>
Re: GIN fast insert Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Re: GIN fast insert Teodor Sigaev <teodor@sigaev.ru>
Re: GIN fast insert Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Jeff Davis  writes:
> On Tue, 2009-02-24 at 00:18 -0500, Robert Haas wrote: 
>> It only took me about 5 minutes to come up with a test case against CVS
>> HEAD where disabling index scans resulted in a significant dropoff in
>> performance.  Here it is:

> On the other hand, Teodor showed a typical use case and a very
> substantial performance gain:

Yeah.  Whatever we do here is a tradeoff (and whether Robert likes it
or not, reliability and code maintainability weigh heavily in the
tradeoff).

> I wonder how many people really use GIN with non-bitmap scans for some
> benefit? And even if the benefit exists, does the planner have a way to
> identify those cases reliably, or does it have to be done manually?

A relevant point there is that most of the estimator functions for
GIN-amenable operators are just smoke and mirrors; so if the planner
is making a good choice between indexscan and bitmapscan at all, it's
mostly luck.  This might get better someday, but not in 8.4.
		regards, tom lane

В списке pgsql-hackers по дате отправления
От: Joshua D. Drake
Дата:
От: Heikki Linnakangas
Дата:
FAQ