From bd111366b044a3028d13de16db606b7b42a866c3 Mon Sep 17 00:00:00 2001 From: Marco Slot Date: Mon, 22 Jul 2019 17:12:58 +0200 Subject: [PATCH] Skip CheckConnectionTimeout when checkForPoolTimeout is false --- src/backend/distributed/executor/adaptive_executor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {