Re: [HACKERS] Proposal: Local indexes for partitioned table - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [HACKERS] Proposal: Local indexes for partitioned table
Date
Msg-id 20180104192023.pylv7jveepit2245@alvherre.pgsql
Whole thread Raw
In response to Re: [HACKERS] Proposal: Local indexes for partitioned table  (Robert Haas <robertmhaas@gmail.com>)
List 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 by date:

Previous
From: Andrey Borodin
Date:
Subject: Re: [HACKERS] wrong t_bits alignment in pageinspect
Next
From: Andres Freund
Date:
Subject: Re: pgsql: Add parallel-aware hash joins.