From bb8c52f7e8c3a9c2ffe7bc646af108b2f66efc87 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Mon, 11 Apr 2022 18:49:11 -0500 Subject: [PATCH] Add doc regarding default pgxpool.Config.MaxConns refs #1183 --- pgxpool/pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgxpool/pool.go b/pgxpool/pool.go index f287ad88..d7586168 100644 --- a/pgxpool/pool.go +++ b/pgxpool/pool.go @@ -112,7 +112,7 @@ type Config struct { // MaxConnIdleTime is the duration after which an idle connection will be automatically closed by the health check. MaxConnIdleTime time.Duration - // MaxConns is the maximum size of the pool. + // MaxConns is the maximum size of the pool. The default is the greater of 4 or runtime.NumCPU(). MaxConns int32 // MinConns is the minimum size of the pool. The health check will increase the number of connections to this