mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-19 22:20:37 +00:00
Do not return from TRY/CATCH in determine_entry_relkind
This commit is contained in:
committed by
Konstantin Knizhnik
parent
87c9b067c2
commit
ca13e7ad7a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user