pgsql: Set relispartition correctly for index partitions - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Set relispartition correctly for index partitions
Date
Msg-id E1f6QFy-0007PE-0a@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Ignore nextOid when replaying an ONLINE checkpoint.
Next
From: Teodor Sigaev
Date:
Subject: pgsql: Rename IndexInfo.ii_KeyAttrNumbers array