Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(postgresql): Remove temporary pool config
The connection pool config was there before I was closing the pool after
analysis. The short connection lifespan was causing connection churn.
  • Loading branch information
kyleconroy committed Oct 13, 2023
commit 56d7d6f04070210ec6ab46bc8e4cf94bba78ca91
4 changes: 0 additions & 4 deletions internal/engine/postgresql/analyzer/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"fmt"
"strings"
"sync"
"time"

"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
Expand Down Expand Up @@ -213,9 +212,6 @@ func (a *Analyzer) Analyze(ctx context.Context, n ast.Node, query string, migrat
if err != nil {
return nil, err
}
conf.MaxConns = 2
conf.MinConns = 0
conf.MaxConnLifetime = time.Second * 1
pool, err := pgxpool.NewWithConfig(ctx, conf)
if err != nil {
return nil, err
Expand Down