Re: Documentation for partitioned indexes?

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Documentation for partitioned indexes?
Date: 2019-05-16 20:10:22
Message-ID: 20190516201022.GA15736@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On 2019-Apr-26, Tom Lane wrote:

> Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> writes:
> > I suppose I better add something in Chapter 5 (DDL), possibly inside the
> > 5.10 section (Table Partitioning) -- a new 5.10.6 "Indexes for
> > Partitioned Tables" perhaps?
>
> I was expecting to find it in "5.11.2.2. Partition Maintenance".

Here's a first attempt at doing that. I vote to backpatch this to pg11
(since this functionality is all there).

> BTW, is there anything equivalent for unique/pkey constraints?
> I tried "add constraint unique ... not valid" and just got a
> raspberry.

Sure, just "alter table only parent", without explicitly marking it not
valid. Then the indexes on children must be attached to the parent
indexes; this searches for constraints and does the right thing.

On 2019-Apr-26, Jonathan S. Katz wrote:

> I'd suggest keeping the title of the section similar to the one with
> constraints, i.e. "Partitioning and Indexes"

In the end, it seemed material far too short to have its own subsection,
but maybe if we redesign the whole section we could lay it out
differently? (One idea would be to leave 5.11 for declarative
partitioning, and add a new section 5.12 for legacy inheritance.
Something to think about for pg13)

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

Attachment Content-Type Size
0001-Describe-creation-of-partitioned-index-piecemeal.patch text/x-diff 2.6 KB

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Michael Paquier 2019-05-16 23:27:15 Re: Typo in GSSAPI docs
Previous Message Liudmila Mantrova 2019-05-16 16:08:07 Re: a small fix for Release notes 11.3