2
0

Implement maximum connection idle time (MaxConnIdleTime) for pgxpool.

If a connection has been idle for longer than maxConnIdleTime, the health check will destroy it.
This commit is contained in:
Patrick Ellul
2020-01-28 16:36:34 +11:00
parent 366c926137
commit 5082e30c4c
4 changed files with 47 additions and 3 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ require (
github.com/jackc/pgio v1.0.0
github.com/jackc/pgproto3/v2 v2.0.1
github.com/jackc/pgtype v1.1.0
github.com/jackc/puddle v1.0.0
github.com/jackc/puddle v1.0.1-0.20200126004755-807afe48a83d
github.com/mattn/go-colorable v0.1.2 // indirect
github.com/mattn/go-isatty v0.0.9 // indirect
github.com/rs/zerolog v1.15.0