Jack Christensen
06c4e181b1
go mod tidy
2020-02-05 11:49:40 -06:00
Jack Christensen
ea0eacc0b6
Release v4.4.0
v4.4.0
2020-02-05 11:31:22 -06:00
Jack Christensen
22ad987698
Add a timeout to pgxpool min connection creation
...
Ensure that CreateResource can't hang.
2020-02-05 11:25:15 -06:00
Jack Christensen
cb1a1ebefa
Update pgconn, pgtype, and puddle
2020-02-05 11:16:59 -06:00
Jack Christensen
282b7936a2
Release 1.2.0
2020-02-05 11:10:17 -06:00
Jack Christensen
406afa0eb7
Release v1.3.1
2020-02-05 11:06:09 -06:00
Jack Christensen
efe9315b5b
Merge pull request #674 from ellulpatrick/min-connections
...
Implements MinConns, the minimum size of the connection pool
2020-02-03 17:07:04 -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
Jack Christensen
77c1076d39
stdlib.ReleaseConn closes connections left in invalid state
...
If a connection is in a transaction or has an open result set then
close the connection when returning it to database/sql. When next
database/sql attempts to use it the connection will return
driver.ErrBadConn and database/sql will remove it from the pool.
fixes #673
2020-02-01 12:00:26 -06:00
Jack Christensen
06c3181836
Merge branch 'ellulpatrick-max-conn-idle-time'
2020-02-01 09:45:37 -06:00
Jack Christensen
2d20ba7ba4
Add doc for pool_max_conn_idle_time option
2020-02-01 09:45:20 -06:00
Jack Christensen
0ab69ce885
Merge branch 'freb-json_marshaling'
2020-01-29 09:26:45 -06: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
Jeffrey Stiles
5f363cb1f0
Add JSON marshalling for Bool, Date, JSON/B, Timestamptz
2020-01-27 16:19:43 -08:00
Jack Christensen
c9abb86f21
Ensure write failure in CopyFrom closes connection
2020-01-25 20:40:21 -06:00
Jack Christensen
67f2418279
Make copyErrChan buffered so goroutine can always terminate
...
It is possible the goroutine that is reading from copyErrChan will not
read in case of error.
2020-01-25 20:39:18 -06:00
Jack Christensen
139342081e
Fix CopyFrom deadlock when multiple NoticeResponse received during copy
...
fixes #21
2020-01-25 20:32:42 -06:00
Jack Christensen
53a5c14d50
Merge pull request #17 from freb/null_unmarshaljson
...
Support Null Status in UnmarshalJSON
2020-01-25 14:13:00 -06:00
Jack Christensen
366c926137
Merge pull request #668 from HowJMay/fix_typo
...
fix: Fix typo
2020-01-25 14:11:59 -06:00
HowJMay
8e88d70eb3
fix: Fix typo
...
Fix some typos in codebase
2020-01-25 15:36:19 +08:00
Jeffrey Stiles
06942241c4
Support Null Status in UnmarshalJSON
2020-01-24 16:38:15 -08:00
Jack Christensen
cf87e34792
Add JSON to shopspring-numeric extension
2020-01-24 17:07:41 -06:00
Jack Christensen
b01b35f466
Fix typo in docs
2020-01-24 14:58:59 -06:00
Jack Christensen
0bbaad1348
Add zeronull package for easier NULL <-> zero conversion
2020-01-24 11:23:28 -06:00
Jack Christensen
1059288751
Update changelog
v4.3.0
2020-01-23 21:05:53 -06:00
Jack Christensen
3a1f0bafbe
Update pgconn to 1.3.0
2020-01-23 21:00:24 -06:00
Jack Christensen
6124b07bb1
Update changelog
2020-01-23 20:57:13 -06:00
Jack Christensen
f909a64ff5
Update pgproto3 to v2.0.1
2020-01-23 20:55:52 -06:00
Jack Christensen
fd4e692323
Add Rows.Values support for unknown types
2020-01-23 20:50:21 -06:00
Jack Christensen
f6feb39655
Fix Rows.Values() fallback to generic decoder
...
fixes #666
2020-01-23 20:41:22 -06:00
Jack Christensen
07b32353a4
Merge pull request #665 from alex/driver-context
...
Fixes #664 -- implement DriverContext for stdlib
2020-01-23 20:08:21 -06:00
Alex Gaynor
efbbde0487
Fixes #664 -- implement DriverContext for stdlib
2020-01-23 14:19:40 -06:00
Jack Christensen
a4375eb53f
Add test that Hijack'ed conn is no longer usable.
2020-01-17 17:42:20 -06:00
Jack Christensen
5952524511
Add Hijack and Construct
...
fixes #9
2020-01-17 17:38:56 -06:00
Jack Christensen
8be01d690f
Make Host comment more precise
2020-01-17 17:38:07 -06:00
Jack Christensen
69048c281c
Update changelog
v4.2.1
2020-01-13 08:51:08 -06:00
Jack Christensen
4ec6ee76fe
Update to pgconn v1.2.1
2020-01-13 08:50:28 -06:00
Jack Christensen
e7dd01e064
Update changelog
2020-01-13 08:48:32 -06:00
Jack Christensen
2582879459
Fix typo - rename ayncClose to asyncClose
2020-01-12 16:28:56 -06:00
Jack Christensen
0df97353b8
Fix racy usage of pgConn.contextWatcher in ayncClose
2020-01-12 16:27:46 -06:00
Jack Christensen
7a394d5c78
Update changelog
v4.2.0
2020-01-11 19:25:23 -06:00
Jack Christensen
fce41c0b24
Update pgconn and pgtype
2020-01-11 19:23:53 -06:00
Jack Christensen
186f4b3539
Update changelog
2020-01-11 19:15:23 -06:00
Jack Christensen
a48e9bf63c
Update changelog
2020-01-11 19:07:39 -06:00
Jack Christensen
fd2093cef8
Add statement type convenience methods to CommandTag and optimize
...
Added convenient way to check whether a statement was a select, insert,
update, or delete. These methods do not allocate.
RowsAffected now does not allocate even when a large number of rows are
affected. It also is multiple times faster, though the absolute change
is inconsequential.
2020-01-11 18:42:31 -06:00
Jack Christensen
b6669ae6dd
Add PgError.SQLState method
...
fixes #15
2020-01-11 18:23:41 -06:00
Jack Christensen
70bb7ab6cb
Merge branch 'bakape-master'
2020-01-11 18:10:33 -06:00
Jack Christensen
ed1391568c
Merge branch 'master' of git://github.com/bakape/pgconn into bakape-master
2020-01-11 18:08:34 -06:00
bakape
9decdbc2ec
Revert nil context support
2020-01-11 16:53:50 +02:00
Jack Christensen
98b3c57584
Try to cancel any in-progress query when a conn is closed by ctx cancel
...
See https://github.com/jackc/pgx/issues/659
2020-01-08 10:03:54 -06:00