mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-04-25 05:35:57 +03:00
[PR #149] Add DB_MAX conf #165
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#165
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?
📋 Pull Request Information
Original PR: https://github.com/eduardolat/pgbackweb/pull/149
Author: @minikill
Created: 10/29/2025
Status: 🔄 Open
Base:
develop← Head:feature/add_connection_limit_config📝 Commits (1)
4e92885Add DB_MAX conf📊 Changes
3 files changed (+17 additions, -2 deletions)
View changed files
📝
.env.example(+7 -0)📝
internal/config/env.go(+2 -0)📝
internal/database/connect.go(+8 -2)📄 Description
Summary
Adds environment variables to configure database connection pool limits, providing better control over database resource usage.
Changes
PBW_DB_MAX_CONNSenvironment variable (default: 10)PBW_DB_MAX_IDLE_CONNSenvironment variable (default: 5).env.exampleMotivation
lib/pqdriver issues: The current PostgreSQL driver (lib/pq) has known prepared statement conflicts in connection pools, especially with managed databases like DigitalOcean. Setting up the exact number of connections allows to avoid using connection poolsTesting
Issue
https://github.com/eduardolat/pgbackweb/issues/148
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.