Skip to content

Make connection pool options GLOBAL#445

Merged
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:global_options
Apr 20, 2026
Merged

Make connection pool options GLOBAL#445
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:global_options

Conversation

@staticlibs
Copy link
Copy Markdown
Collaborator

This PR changes the default scope from SESSION to GLOBAL for the following options (see #430 and #444 for details):

  • pg_pool_acquire_mode
  • pg_pool_max_connections
  • pg_pool_wait_timeout_millis
  • pg_pool_enable_thread_local_cache
  • pg_pool_max_lifetime_millis
  • pg_pool_idle_timeout_millis
  • pg_pool_enable_reaper_thread
  • pg_pool_health_check_query

Additionally it changes the default size of the connection pool to max(cpu_count * 1.5, 8).

Fixes: duckdb/ducklake#1031

This PR changes the default scope from `SESSION` to `GLOBAL` for the
following options (see duckdb#430 and duckdb#444 for details):

 - `pg_pool_acquire_mode`
 - `pg_pool_max_connections`
 - `pg_pool_wait_timeout_millis`
 - `pg_pool_enable_thread_local_cache`
 - `pg_pool_max_lifetime_millis`
 - `pg_pool_idle_timeout_millis`
 - `pg_pool_enable_reaper_thread`
 - `pg_pool_health_check_query`

Additionally it changes the default size of the connection pool to
`max(cpu_count * 1.5, 8)`.

Fixes: duckdb/ducklake#1031
@staticlibs staticlibs merged commit f81dd35 into duckdb:main Apr 20, 2026
4 checks passed
@staticlibs staticlibs deleted the global_options branch April 20, 2026 09:31
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.

Connection pool timeout with postgres catalog

1 participant