Skip to content

Commit b178c8c

Browse files
authored
fix(postgresql): Remove temporary pool config (#2851)
The connection pool config was there before I was closing the pool after analysis. The short connection lifespan was causing connection churn.
1 parent 9590282 commit b178c8c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

internal/engine/postgresql/analyzer/analyze.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"fmt"
77
"strings"
88
"sync"
9-
"time"
109

1110
"github.com/jackc/pgx/v5"
1211
"github.com/jackc/pgx/v5/pgconn"
@@ -213,9 +212,6 @@ func (a *Analyzer) Analyze(ctx context.Context, n ast.Node, query string, migrat
213212
if err != nil {
214213
return nil, err
215214
}
216-
conf.MaxConns = 2
217-
conf.MinConns = 0
218-
conf.MaxConnLifetime = time.Second * 1
219215
pool, err := pgxpool.NewWithConfig(ctx, conf)
220216
if err != nil {
221217
return nil, err

0 commit comments

Comments
 (0)