From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Ignore partitioned indexes where appropriate
Date: Thu, 25 Jan 2018 19:12:41 +0000
Message-ID: <E1eemwz-000268-TO@gemulon.postgresql.org> (raw)
Ignore partitioned indexes where appropriate
get_relation_info() was too optimistic about opening indexes in
partitioned tables, which would raise errors when any queries were
planned on such tables. Fix by ignoring any indexes of the partitioned
kind.
CLUSTER (and ALTER TABLE CLUSTER ON) had a similar problem. Fix by
disallowing these commands in partitioned tables.
Fallout from 8b08f7d4820f.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/05fb5d661925f00106373f1a594be5aca24d9a94
Modified Files
--------------
src/backend/commands/cluster.c | 14 ++++++++++++++
src/backend/optimizer/util/plancat.c | 10 ++++++++++
src/test/regress/expected/cluster.out | 8 ++++++++
src/test/regress/expected/indexing.out | 11 +++++++++++
src/test/regress/sql/cluster.sql | 7 +++++++
src/test/regress/sql/indexing.sql | 8 ++++++++
6 files changed, 58 insertions(+)
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: alvherre@alvh.no-ip.org
Subject: Re: pgsql: Ignore partitioned indexes where appropriate
In-Reply-To: <E1eemwz-000268-TO@gemulon.postgresql.org>
References: <E1eemwz-000268-TO@gemulon.postgresql.org>
* 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