Commit Graph

60 Commits (04bcc0219dc3acf67f27e68decd6dffe97334779)

Author SHA1 Message Date
Jack Christensen f76d37a387 Do not run timing sensitive test in parallel
This test
2020-04-02 22:24:09 -05:00
Jack Christensen 8c9d1cc15b Add test case for #677 2020-02-07 16:07:43 -06:00
Patrick Ellul a01827732f Implements MinConns, the minimum size of the connection pool.
The health check will increase the number of connections to this amount if it had dropped below.
2020-02-04 08:17:53 +11:00
Patrick Ellul 5082e30c4c Implement maximum connection idle time (MaxConnIdleTime) for pgxpool.
If a connection has been idle for longer than maxConnIdleTime, the health check will destroy it.
2020-01-28 16:36:34 +11:00
Adam Pantel 167442e66b Add a couple error checks 2019-11-22 11:51:58 -05:00
Jack Christensen 93a2aa5b2f Releasing a busy connection closes the connection
refs #622
2019-10-12 11:26:51 -05:00
Jack Christensen f20f026b7d Pool BeforeAcquire hook takes context 2019-08-31 08:57:03 -05:00
Jack Christensen ddd9cf451e Update pgxpool for latest pgconn 2019-08-27 18:29:14 -05:00
Jack Christensen b7b52ff079 Require conn and pool configs to be created by ParseConfig
This simplifies handling default values. Now there is no ambiguity
between a zero value and a default value. All default values are set by
ParseConfig and the user can modify them after the initial creation.

fixes #567
2019-08-24 09:53:38 -05:00
Jack Christensen 08b412740f Rename package pool to pgxpool
pool is too common a name to occupy.
2019-06-29 11:37:36 -05:00