Skip to content

Pool: expose health check query option#428

Merged
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:health_check_query
Apr 5, 2026
Merged

Pool: expose health check query option#428
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:health_check_query

Conversation

@staticlibs
Copy link
Copy Markdown
Collaborator

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:

SET pg_pool_health_check_query = NULL

Testing: option name check is added, behavior test coverage is pending on the pool introspection support.

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.
@staticlibs staticlibs force-pushed the health_check_query branch from 80c8632 to b5c2c5d Compare April 4, 2026 00:29
@staticlibs staticlibs merged commit dd084dc into duckdb:main Apr 5, 2026
15 checks passed
@staticlibs staticlibs deleted the health_check_query branch April 5, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant