Ignore partitioned indexes where appropriate
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 25 Jan 2018 19:11:51 +0000 (16:11 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 25 Jan 2018 19:12:15 +0000 (16:12 -0300)
commit05fb5d661925f00106373f1a594be5aca24d9a94
tree24ba4956f8493b4548a6197186624fb1923794a6
parent5955d934194c3888f30318209ade71b53d29777f
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.
src/backend/commands/cluster.c
src/backend/optimizer/util/plancat.c
src/test/regress/expected/cluster.out
src/test/regress/expected/indexing.out
src/test/regress/sql/cluster.sql
src/test/regress/sql/indexing.sql