Re: [HACKERS] Proposal: Local indexes for partitioned table

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [HACKERS] Proposal: Local indexes for partitioned table
Дата
Msg-id 20180104192023.pylv7jveepit2245@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: [HACKERS] Proposal: Local indexes for partitioned table  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas wrote:
> On Thu, Jan 4, 2018 at 11:44 AM, Peter Eisentraut
> <peter.eisentraut@2ndquadrant.com> wrote:
> > I'm not sure why this feature of automatically picking up matching
> > indexes even exists.  Is it for some specific workflows or upgrade
> > scenarios?  It's kind of a surprising feature in a way.
> 
> It allows you to avoid building a new indexes unnecessarily when
> attaching a partition.

Yeah -- this is important to reduce the duration of the DDL operation,
since attaching a partition requires an access exclusive lock.  Having
to build the index at that point would make that feature pretty much
useless for many use cases.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Andrey Borodin
Дата:
Сообщение: Re: [HACKERS] wrong t_bits alignment in pageinspect
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Add parallel-aware hash joins.