DEBUG only when the function is distributed

Otherwise, we're seeing this message way to often.
pull/3152/head
Onder Kalaci 2019-11-05 15:02:28 +01:00 committed by Philip Dubé
parent 960cd02c67
commit 471703bfaf
1 changed files with 4 additions and 1 deletions

View File

@ -224,9 +224,12 @@ TryToDelegateFunctionCall(Query *query, bool *hasExternParam)
if (procedure == NULL || !procedure->isDistributed) if (procedure == NULL || !procedure->isDistributed)
{ {
/* not a distributed function call */ /* not a distributed function call */
ereport(DEBUG4, (errmsg("function is not distributed")));
return NULL; return NULL;
} }
else
{
ereport(DEBUG4, (errmsg("function is distributed")));
}
if (IsMultiStatementTransaction()) if (IsMultiStatementTransaction())
{ {