Pool: expose health check query option#428
Merged
staticlibs merged 1 commit intoduckdb:mainfrom Apr 5, 2026
Merged
Conversation
This PR adds `pg_pool_health_check_query` option that is run to check the connection when it is taken from the pool or returned to the pool. The option is only effective for the Postgres databases attached after the option is set. To disable the health check query set this option to `NULL`: ```sql SET pg_pool_health_check_query = NULL ``` Testing: option name check is added, behavior test coverage is pending on the pool introspection support.
80c8632 to
b5c2c5d
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds
pg_pool_health_check_queryoption that is run to check the connection when it is taken from the pool or returned to the pool.The option is only effective for the Postgres databases attached after the option is set.
To disable the health check query set this option to
NULL:Testing: option name check is added, behavior test coverage is pending on the pool introspection support.