Skip to content

fix: Correct PostgreSQL connection pool parameter name and defaults#1516

Open
claudespice wants to merge 1 commit intotrunkfrom
fix/postgres-pool-params
Open

fix: Correct PostgreSQL connection pool parameter name and defaults#1516
claudespice wants to merge 1 commit intotrunkfrom
fix/postgres-pool-params

Conversation

@claudespice
Copy link
Copy Markdown
Collaborator

Summary

  • The PostgreSQL data accelerator docs documented a non-existent parameter pg_connection_pool_min (default 5) instead of the actual parameter pg_connection_pool_min_idle (default 1)
  • The connection_pool_size default was documented as 10 but the code default changed to 5 in v1.8.0 (Make database connection pool sizes consistent spiceai#7403)
  • The pg_connection_pool_min_idle parameter was missing from the data connector docs for versions 1.8.x through 1.11.x

Changes

  • Renamed pg_connection_pool_minpg_connection_pool_min_idle in all data accelerator docs (vNext + 1.8.x–1.11.x)
  • Corrected pg_connection_pool_min_idle default from 51
  • Corrected connection_pool_size default from 105 in data accelerator and data connector docs (1.8.x–1.10.x)
  • Added missing pg_connection_pool_min_idle parameter to data connector docs (1.8.x–1.11.x)

Reference

Verified against spiceai/spiceai at trunk, v1.11.5, v1.10.4, v1.9.2, and v1.8.0 — crates/data-connectors/connector-postgres/src/lib.rs defines connection_pool_min_idle with .default("1") and connection_pool_size with .default("5").

The PostgreSQL data accelerator docs used the non-existent parameter name
`pg_connection_pool_min` (default `5`) instead of the actual parameter
`pg_connection_pool_min_idle` (default `1`). The `connection_pool_size`
default was also incorrectly documented as `10` instead of `5` — the
default changed from 10 to 5 in v1.8.0 (spiceai/spiceai#7403) but the
docs were never updated.

Fixes across vNext and versioned docs (1.8.x through 1.11.x):
- Rename `pg_connection_pool_min` to `pg_connection_pool_min_idle`
- Correct default from `5` to `1` for `pg_connection_pool_min_idle`
- Correct default from `10` to `5` for `connection_pool_size`
- Add missing `pg_connection_pool_min_idle` to data connector docs
  for versions 1.8.x through 1.11.x

Verified against spiceai/spiceai at trunk, v1.11.5, v1.10.4, v1.9.2,
and v1.8.0 — all have `.default("1")` for `connection_pool_min_idle`
and `.default("5")` for `connection_pool_size`.
@claudespice claudespice added the bug Something isn't working label Apr 16, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 16, 2026

🔍 Pull with Spice Failed

Passing checks:

  • ✅ Title meets minimum length requirement (10 characters)
  • ✅ No banned labels detected

Failed checks:

  • ❌ Please select at least one of the required labels for this pull request: area/blog, area/docs, area/cookbook, dependencies
  • ❌ At least one assignee is required for this pull request.

Please address these issues and update your pull request.

@github-actions
Copy link
Copy Markdown

🚀 deployed to https://3f91f1e4.spiceai-org-website.pages.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant