]> granicus.if.org Git - postgresql/commit
Set relispartition correctly for index partitions
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 12 Apr 2018 00:27:12 +0000 (21:27 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 12 Apr 2018 00:27:12 +0000 (21:27 -0300)
commit9e9befac4a2228ae8a5309900645ecd8ead69f53
treeca7a58ee8c6a5853ec8fc19fec70fcaf62391767
parentd1e9079295e9e6fcab8f2ad9c69dd1be8e876d47
Set relispartition correctly for index partitions

Oversight in commit 8b08f7d4820f: pg_class.relispartition was not
being set for index partitions, which is a bit odd, and was also causing
the code to unnecessarily call has_superclass() when simply checking the
flag was enough.

Author: Álvaro Herrera
Reported-by: Amit Langote
Discussion: https://postgr.es/m/12085bc4-0bc6-0f3a-4c43-57fe0681772b@lab.ntt.co.jp
src/backend/catalog/index.c
src/backend/commands/tablecmds.c