Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent reuse of broken connections in postgres pool (#7792)
this updates the error handler we have on the postgres connection object to release back with an error in the case of an error so the underlying `pg-pool` knows to remove the connection from the rotation
- Loading branch information
1 parent
2adfe36
commit 5cf368a
Showing
2 changed files
with
22 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters