mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-04-25 05:35:57 +03:00
[GH-ISSUE #148] [FEATURE]: Add Configurable Database Connection Pool Limits #120
Labels
No labels
bug
confirmed next step
duplicate
enhancement
help wanted
in progress
in progress
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pgbackweb#120
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @minikill on GitHub (Oct 29, 2025).
Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/148
Problem
The application currently hardcodes database connection pool settings (
SetMaxOpenConns(10)), which can cause issues in certain environments:lib/pqdriver prepared statement conflicts: With connection pooling, users experience"pq: unnamed prepared statement does not exist"errors, especially on managed PostgreSQL instances (https://github.com/lib/pq/issues/889)Ideal Solution (Long-term)
Switch to a more modern PostgreSQL driver that properly handles prepared statements with connection pooling, such as:
pgx- Actively maintained with better connection pooling supportpgxpool- Built specifically for connection pooling scenariosProposed Short-term Workaround
Add environment variables to make connection pool settings configurable:
PBW_DB_MAX_CONNS(default: 10)PBW_DB_MAX_IDLE_CONNS(default: 5)This allows users to:
lib/pqprepared statement issues@minikill commented on GitHub (Jan 27, 2026):
Hey folks, a quick ping after ~3 months.
Are there plans to make DB pool settings configurable instead of hardcoded?
This MR does that with unchanged defaults.