Skip to content

Commit bb8c52f

Browse files
committed
Add doc regarding default pgxpool.Config.MaxConns
refs #1183
1 parent 3ce50c0 commit bb8c52f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgxpool/pool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ type Config struct {
112112
// MaxConnIdleTime is the duration after which an idle connection will be automatically closed by the health check.
113113
MaxConnIdleTime time.Duration
114114

115-
// MaxConns is the maximum size of the pool.
115+
// MaxConns is the maximum size of the pool. The default is the greater of 4 or runtime.NumCPU().
116116
MaxConns int32
117117

118118
// MinConns is the minimum size of the pool. The health check will increase the number of connections to this

0 commit comments

Comments
 (0)