[go-nuts] Re: max connections limit lib/pq

2017-07-01 Thread Franco Marchesini
Postgres default max connection is set to 100. https://www.postgresql.org/docs/9.5/static/runtime-config-connection.html max_connections (integer) Determines the maximum number of concurrent connections to the database server. The default is typically 100 connections, but might be less if your

[go-nuts] Re: max connections limit lib/pq

2017-06-30 Thread gerald . stanje
what you want is to set SetMaxOpenConns, SetMaxIdleConns: db, err := sql.Open(config.DriverName, GetDataSourceFromConfig(config)) if err != nil { log.Fatal(err) } db.SetMaxOpenConns(config.MaxOpenConns) db.SetMaxIdleConns(config.MaxIdleConns) On Friday, June 30, 2017 at 10:22:11 AM UTC-4,

[go-nuts] Re: max connections limit lib/pq

2017-06-30 Thread Franco Marchesini
If you really have over 100 simultaneous connection you need to configure postgresql engine Regards Franco Il giorno mercoledì 21 giugno 2017 14:56:14 UTC+2, Tieson Molly ha scritto: > > I am running into an issue I have seen mentioned on here years ago. I am > seeking the current best