pgsql: Set relispartition correctly for index partitions

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Set relispartition correctly for index partitions
Date: 2018-04-12 00:38:30
Message-ID: E1f6QFy-0007PE-0a@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9e9befac4a2228ae8a5309900645ecd8ead69f53

Modified Files
--------------
src/backend/catalog/index.c | 1 +
src/backend/commands/tablecmds.c | 51 ++++++++++++++++++++++++++++++++++------
2 files changed, 45 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Teodor Sigaev 2018-04-12 10:03:40 pgsql: Rename IndexInfo.ii_KeyAttrNumbers array
Previous Message Michael Paquier 2018-04-11 23:48:04 Re: pgsql: New files for MERGE