From 471703bfaf550755af0d1d9885f2ea9b027d04f1 Mon Sep 17 00:00:00 2001 From: Onder Kalaci Date: Tue, 5 Nov 2019 15:02:28 +0100 Subject: [PATCH] DEBUG only when the function is distributed Otherwise, we're seeing this message way to often. --- src/backend/distributed/planner/function_call_delegation.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/distributed/planner/function_call_delegation.c b/src/backend/distributed/planner/function_call_delegation.c index fd5fcb6af..33566054a 100644 --- a/src/backend/distributed/planner/function_call_delegation.c +++ b/src/backend/distributed/planner/function_call_delegation.c @@ -224,9 +224,12 @@ TryToDelegateFunctionCall(Query *query, bool *hasExternParam) if (procedure == NULL || !procedure->isDistributed) { /* not a distributed function call */ - ereport(DEBUG4, (errmsg("function is not distributed"))); return NULL; } + else + { + ereport(DEBUG4, (errmsg("function is distributed"))); + } if (IsMultiStatementTransaction()) {