diff --git a/pgxn/neon/pagestore_smgr.c b/pgxn/neon/pagestore_smgr.c index 1ec058c6dc..5a56294b26 100644 --- a/pgxn/neon/pagestore_smgr.c +++ b/pgxn/neon/pagestore_smgr.c @@ -1589,9 +1589,10 @@ hexdump_page(char *page) static RelKind determine_entry_relkind(RelKindEntry *entry, SMgrRelation reln, ForkNumber forknum) { + RelKind relkind = RELKIND_UNKNOWN; PG_TRY(); { - return mdexists(reln, forknum) ? RELKIND_UNLOGGED : RELKIND_PERMANENT; + relkind = mdexists(reln, forknum) ? RELKIND_UNLOGGED : RELKIND_PERMANENT; } PG_CATCH(); { @@ -1599,6 +1600,7 @@ static RelKind determine_entry_relkind(RelKindEntry *entry, SMgrRelation reln, F PG_RE_THROW(); } PG_END_TRY(); + return relkind; } #if PG_MAJORVERSION_NUM < 17