From 2cc28c75be80231062916949e4cbf5d0a7d2f8d9 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Wed, 2 Jul 2025 14:08:26 +0300 Subject: [PATCH] Fix "ERROR: could not read size of rel ..." in many regression tests. We were incorrectly skipping the call to communicator_new_rel_create(), which resulted in an error during index build, when the btree build code tried to check the size of the newly-created relation. --- pgxn/neon/pagestore_smgr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pgxn/neon/pagestore_smgr.c b/pgxn/neon/pagestore_smgr.c index e0316b6489..a7bf5fc3d5 100644 --- a/pgxn/neon/pagestore_smgr.c +++ b/pgxn/neon/pagestore_smgr.c @@ -829,6 +829,8 @@ neon_create(SMgrRelation reln, ForkNumber forkNum, bool isRedo) if (!communicator_new_rel_exists(InfoFromSMgrRel(reln), forkNum)) communicator_new_rel_create(InfoFromSMgrRel(reln), forkNum); } + else + communicator_new_rel_create(InfoFromSMgrRel(reln), forkNum); } else {