aboutsummaryrefslogtreecommitdiff
path: root/src/backend/catalog/index.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/catalog/index.c')
-rw-r--r--src/backend/catalog/index.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/backend/catalog/index.c b/src/backend/catalog/index.c
index f1ef4c319a0..5885899c9b4 100644
--- a/src/backend/catalog/index.c
+++ b/src/backend/catalog/index.c
@@ -994,9 +994,12 @@ index_create(Relation heapRelation,
*/
CacheInvalidateRelcache(heapRelation);
- /* update pg_inherits, if needed */
+ /* update pg_inherits and the parent's relhassubclass, if needed */
if (OidIsValid(parentIndexRelid))
+ {
StoreSingleInheritance(indexRelationId, parentIndexRelid, 1);
+ SetRelationHasSubclass(parentIndexRelid, true);
+ }
/*
* Register constraint and dependencies for the index.