diff --git a/src/backend/distributed/executor/adaptive_executor.c b/src/backend/distributed/executor/adaptive_executor.c index dfbcae051..8619f8d86 100644 --- a/src/backend/distributed/executor/adaptive_executor.c +++ b/src/backend/distributed/executor/adaptive_executor.c @@ -1810,7 +1810,10 @@ ManageWorkerPool(WorkerPool *workerPool) } /* we might fail the execution or warn the user about connection timeouts */ - CheckConnectionTimeout(workerPool); + if (workerPool->checkForPoolTimeout) + { + CheckConnectionTimeout(workerPool); + } if (failedConnectionCount >= 1) {