Skip to content

Commit

Permalink
Add doc regarding default pgxpool.Config.MaxConns
Browse files Browse the repository at this point in the history
refs #1183
  • Loading branch information
jackc committed Apr 11, 2022
1 parent 3ce50c0 commit bb8c52f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgxpool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb8c52f

Please sign in to comment.