Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location

Поиск
Список
Период
Сортировка
Искать
От
Kevin Grittner
Тема
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location
Дата
Msg-id
CACjxUsPSuHf3Gjuu=6=8ufnXTjSd8VFvU9goKfU2=h4hbioD=A@mail.gmail.com
Ответ на
Список
Дерево обсуждения
[WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Robert Haas <robertmhaas@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Kevin Grittner <kgrittn@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Tom Lane <tgl@sss.pgh.pa.us>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Peter Geoghegan <pg@heroku.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Peter Geoghegan <pg@heroku.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Kevin Grittner <kgrittn@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Peter Geoghegan <pg@heroku.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Peter Geoghegan <pg@heroku.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Peter Geoghegan <pg@heroku.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Peter Geoghegan <pg@heroku.com>
Re: [HACKERS] [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [HACKERS] [WIP] [B-Tree] Keep indexes sorted by heap physical location Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [HACKERS] [WIP] [B-Tree] Keep indexes sorted by heap physical location Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Amit Kapila <amit.kapila16@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Amit Kapila <amit.kapila16@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Amit Kapila <amit.kapila16@gmail.com>
Re: [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
Re: [HACKERS] [WIP] [B-Tree] Keep indexes sorted by heap physical location Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] [WIP] [B-Tree] Keep indexes sorted by heap physical location Claudio Freire <klaussfreire@gmail.com>
On Thu, Aug 18, 2016 at 3:41 PM, Claudio Freire  wrote:

> It also makes index scans of the form
>
> SELECT * FROM t WHERE some_col = some_const;
>
> Scan the heap in sequential order, even if some_col has low
> cardinality (ie: the query returns lots of tuples), which is a nice
> performance side effect.

Speaking of performance side effects, does this avoid O(N^2)
performance on index tuple insertion with duplicate values, for all
insertion orderings?  For example, does it descend directly to the
right leaf page for the insert rather than starting at the front of
the block of duplicate values and scanning to the right for a
block with space, with a random chance to split a full block on
each page it moves through?

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


В списке pgsql-hackers по дате отправления
От: Jeff Janes
Дата:
От: Tom Lane
Дата:
FAQ