-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection TTL #2965
Comments
There's a node-postgres/packages/pg-pool/index.js Lines 254 to 275 in b357e18
Here's the PR that added it: #2698 It might cover the use case you are describing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With the newly added
release
event in Pool, it is possible to implement connection TTL. We did that internally in our project but it would be great to have OOTB support for it in node-postgres.It helped us resolve problems with AZ failovers when connecting to AWS RDS when the domain name starts pointing to different machine but connections in the pool still use previous address.
I wanted to understand whether there is any need for that before I start working on the PR. What do you think?
The text was updated successfully, but these errors were encountered: