pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: Local partitioned indexes
Date: Mon, 29 Jan 2018 17:04:40 +0900
Message-ID: <eafaaeb1-f0fd-d010-dd45-07db0300f645@lab.ntt.co.jp> (raw)
In-Reply-To: <E1ecY4S-0007Jn-Gy@gemulon.postgresql.org>
References: <E1ecY4S-0007Jn-Gy@gemulon.postgresql.org>

On 2018/01/19 23:55, Alvaro Herrera wrote:
> Local partitioned indexes
>
> Modified Files
> --------------
> doc/src/sgml/catalogs.sgml                |  23 +
> doc/src/sgml/ref/alter_index.sgml         |  14 +
> doc/src/sgml/ref/alter_table.sgml         |   8 +-
> doc/src/sgml/ref/create_index.sgml        |  33 +-
> doc/src/sgml/ref/reindex.sgml             |   5 +

I noticed that the declarative partitioning section in ddl.sgml hasn't
been updated to reflect the features added by this commit.  Attached patch
is an attempt to fix that.

Thanks,
Amit

Attachments:

v1-0001-Update-ddl.sgml-to-reflect-features-added-in-8b08.patch (text/plain, 1.8K) download From 2007545c0d1c1cdfac079161a108a086091e8735 Mon Sep 17 00:00:00 2001 From: amit <amitlangote09@gmail.com> Date: Mon, 29 Jan 2018 16:59:03 +0900 Subject: [PATCH v1] Update ddl.sgml to reflect features added in 8b08f7d4820 --- doc/src/sgml/ddl.sgml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/doc/src/sgml/ddl.sgml b/doc/src/sgml/ddl.sgml index 1e1f3428a6..9959e7ae6c 100644 --- a/doc/src/sgml/ddl.sgml +++ b/doc/src/sgml/ddl.sgml @@ -3159,6 +3159,18 @@ CREATE INDEX ON measurement_y2007m12 (logdate); CREATE INDEX ON measurement_y2008m01 (logdate); </programlisting> </para> + + <para> + Alternatively, you can simply create the index in the parent table, + which is same as creating it in every partition that is currently + defined. Moreover, once created in the parent table, the index is + automatically created in partitions that will be added in the future. + </para> + +<programlisting> +CREATE INDEX ON measurement (logdate); +</programlisting> + </para> </listitem> <listitem> @@ -3273,12 +3285,9 @@ ALTER TABLE measurement ATTACH PARTITION measurement_y2008m02 <itemizedlist> <listitem> <para> - There is no facility available to create the matching indexes on all - partitions automatically. Indexes must be added to each partition with - separate commands. This also means that there is no way to create a - primary key, unique constraint, or exclusion constraint spanning all - partitions; it is only possible to constrain each leaf partition - individually. + There is no way to create a primary key, unique constraint, or + exclusion constraint spanning all partitions; it is only possible + to constrain each leaf partition individually. </para> </listitem> -- 2.11.0

view thread (8+ messages)  latest in thread

Message-ID: <eafaaeb1-f0fd-d010-dd45-07db0300f645@lab.ntt.co.jp>
Permalink:  ../eafaaeb1-f0fd-d010-dd45-07db0300f645@lab.ntt.co.jp/
Also on:    postgresql.org/message-id/eafaaeb1-f0fd-d010-dd45-07db0300f645@lab.ntt.co.jp

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: Langote_Amit_f8@lab.ntt.co.jp, alvherre@alvh.no-ip.org, pgsql-hackers@postgresql.org
  Subject: Re: pgsql: Local partitioned indexes
  In-Reply-To: <eafaaeb1-f0fd-d010-dd45-07db0300f645@lab.ntt.co.jp>
  References: <E1ecY4S-0007Jn-Gy@gemulon.postgresql.org> <eafaaeb1-f0fd-d010-dd45-07db0300f645@lab.ntt.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox