-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Upgrade hasql-pool #2391
Closed
Closed
Upgrade hasql-pool #2391
Commits on Aug 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4b24599 - Browse repository at this point
Copy the full SHA 4b24599View commit details -
Configuration menu - View commit details
-
Copy full SHA for bcb9a1d - Browse repository at this point
Copy the full SHA bcb9a1dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 022e7ca - Browse repository at this point
Copy the full SHA 022e7caView commit details -
upgrade to hasql-pool 0.7.2, adding pool replacement logic (fixes Pos…
…tgREST#2401) This version of hasql-pool is a simplified rewrite that doesn't use the resource-pool package. The major API changes are that idle connections are no longer timed out (and the corresponding setting is gone), and that `release` makes the pool unusable, where it used to remain usable and only flushed idle connections. - This change removes the db-pool-timeout option, since new hasql-pool doesn't provide timing out of idle connections. Given that we were typically running with very high timeout settings, I don't anticipate the lack of timeout to introduce new issues, though we might want to consider introducing some retry-logic down the line when we encounter connection failures. - To recover the ability to flush idle connections, we add a somewhat painful pool wrapper that allows replacing the pool. This fixes PostgREST#2401 by ensuring that flushing the pool also prevents any active connections from being reused in the future.
Configuration menu - View commit details
-
Copy full SHA for c892a4e - Browse repository at this point
Copy the full SHA c892a4eView commit details -
tests: update app settings test
The original test no longer makes sense since connections don't timeout. To somehow test that new connections have the settings, convert it to flush the pool instead.
Configuration menu - View commit details
-
Copy full SHA for 057e326 - Browse repository at this point
Copy the full SHA 057e326View commit details -
Configuration menu - View commit details
-
Copy full SHA for b589495 - Browse repository at this point
Copy the full SHA b589495View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67cbe5b - Browse repository at this point
Copy the full SHA 67cbe5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fcb3e5b - Browse repository at this point
Copy the full SHA fcb3e5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e3726b0 - Browse repository at this point
Copy the full SHA e3726b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f9c60e - Browse repository at this point
Copy the full SHA 2f9c60eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1623591 - Browse repository at this point
Copy the full SHA 1623591View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72f61ab - Browse repository at this point
Copy the full SHA 72f61abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 84f4b4a - Browse repository at this point
Copy the full SHA 84f4b4aView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.