Skip to content

Commit 99407e2

Browse files
committed
Do not cancel backend on client connection lost in case of connection pooling
1 parent 0c6ed6f commit 99407e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/tcop/postgres.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2962,7 +2962,7 @@ ProcessInterrupts(void)
29622962
LockErrorCleanup();
29632963
/* don't send to client, we already know the connection to be dead. */
29642964
whereToSendOutput = DestNone;
2965-
ereport(FATAL,
2965+
ereport(ActiveSession ? ERROR : FATAL,
29662966
(errcode(ERRCODE_CONNECTION_FAILURE),
29672967
errmsg("connection to client lost")));
29682968
}

0 commit comments

Comments
 (0)