Skip to content

Commit d95e77e

Browse files
danolivoarssher
authored andcommitted
[PGPRO-3333] Add message to explain an error caused by the remote functions parsing process.
(cherry picked from commit f4c7f7389b6f3c259692f532f3613c44468a2bb1)
1 parent da87690 commit d95e77e

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/ddl.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,18 @@ MtmExecutorStart(QueryDesc *queryDesc, int eflags)
11441144
if (!MtmIsLogicalReceiver && !MtmDDLStatement && MtmIsEnabled())
11451145
{
11461146
if (!MtmRemoteFunctionsValid)
1147-
MtmInitializeRemoteFunctionsMap();
1147+
{
1148+
PG_TRY();
1149+
{
1150+
MtmInitializeRemoteFunctionsMap();
1151+
}
1152+
PG_CATCH();
1153+
{
1154+
errcontext("DETAIL: During parsing of remote functions string: '%s'", MtmRemoteFunctionsList);
1155+
PG_RE_THROW();
1156+
}
1157+
PG_END_TRY();
1158+
}
11481159

11491160
Assert(queryDesc->planstate);
11501161

0 commit comments

Comments
 (0)