diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c index 67a7749a30..e606ac2b9e 100644 --- a/src/backend/catalog/heap.c +++ b/src/backend/catalog/heap.c @@ -1295,6 +1295,7 @@ heap_create_with_catalog(const char *relname, { Assert(relkind == RELKIND_RELATION || relkind == RELKIND_TOASTVALUE); + RelationOpenSmgr(new_rel_desc); smgrcreate(new_rel_desc->rd_smgr, INIT_FORKNUM, false); if (XLogIsNeeded()) log_smgrcreate(&new_rel_desc->rd_smgr->smgr_rnode.node,