483 Commits

Author SHA1 Message Date
Jack Christensen
b5901f7dba Fix skip JSON tests for old servers 2015-11-12 15:43:48 -06:00
Jack Christensen
09e0cc4815 Skip JSON tests for old PostgreSQL servers 2015-11-12 15:27:20 -06:00
Jack Christensen
e1215d9b19 []byte skips encoding/decoding
refs #104
2015-11-12 14:54:25 -06:00
Jack Christensen
26bb780063 inet is known type now -- so use point instead 2015-11-12 13:41:00 -06:00
Jack Christensen
69102e4463 test ipv4 for travis simplicity 2015-10-26 19:08:15 -05:00
Jack Christensen
db57394741 test ipv4 for travis simplicity 2015-10-26 18:13:35 -05:00
Jack Christensen
de41977104 Run short tests on travis to avoid failure due to too long tests 2015-10-26 17:43:30 -05:00
Jack Christensen
b7b7a83471 Test on travis with Go 1.5 2015-10-26 17:40:35 -05:00
Jack Christensen
3262ee23f3 Release 2.7.1 v2.7.1 2015-10-26 12:09:46 -05:00
Jack Christensen
60cca3de7d Disable SSL renegotiation
fixes #103
2015-10-26 12:07:54 -05:00
Jack Christensen
1e9206fc6c Release v2.7.0 v2.7.0 2015-10-16 16:37:45 -05:00
Jack Christensen
7e668f54fe Update changelog 2015-10-16 16:18:31 -05:00
Jack Christensen
8d9eb62609 Add docs for relating to ConnConfig.RuntimeParams 2015-10-16 16:16:39 -05:00
Jack Christensen
ec8f6259e6 ParseEnvLibpq extracts PGAPPNAME 2015-10-16 16:13:15 -05:00
Jack Christensen
829d61ce40 ParseDSN extracts RuntimeParams 2015-10-16 15:48:24 -05:00
Jack Christensen
5b0550c1cb ParseURI extracts run-time parameters
refs #99
2015-10-16 15:37:49 -05:00
Jack Christensen
1fb63a4b41 Add RuntimeParams to ConnConfig 2015-10-16 15:37:32 -05:00
Jack Christensen
355a3854db Update changelog 2015-10-16 15:01:40 -05:00
Jack Christensen
41b96b5f77 Fix stdlib error caused by idempotent Prepare 2015-10-16 14:58:03 -05:00
Jack Christensen
984eace2b5 Make *Conn.Prepare idempotent.
fixes #94
2015-10-16 14:17:07 -05:00
Jack Christensen
c668caeb31 Fix error message in tests. 2015-10-16 14:15:26 -05:00
Jack Christensen
7dfdc92855 Rows.Values supports oid type 2015-10-07 08:00:43 -05:00
Jack Christensen and Jake Worth
c726a51450 Add inet[] and cidr[] support 2015-09-29 13:23:26 -05:00
Jack Christensen
36fb7a3aec Use Skip when skipping tests rather than just return 2015-09-26 13:29:40 -05:00
Jack Christensen
20cf4f87ab Remove notifications when releasing Conn to Pool 2015-09-26 13:24:21 -05:00
Jack Christensen
3857bab52e Add query close early to pool stress test 2015-09-26 13:19:00 -05:00
Jack Christensen
e315754b1f Add stress test to connection pool 2015-09-26 13:12:53 -05:00
Jack Christensen
4987d5425e Fix JSON encoding of *string 2015-09-21 13:40:47 -05:00
Jack Christensen
1b90ad1051 Update changelog 2015-09-21 08:20:30 -05:00
Jack Christensen
ca16a4c98f Unlisten tweaks
- Use unlisten * when releasing connection with listeners to pool
- Only unlisten on releasing connection to pool when necessary
- Remove Unlisten("") as was to release all listeners
2015-09-21 08:18:10 -05:00
Jack Christensen
9fd5c7e6ab Add test for Unlisten 2015-09-21 08:05:53 -05:00
Joseph Glanville
eb5cadccf9 Track Listen/Unlisten and clear subscriptions on conn release 2015-09-21 07:56:45 -05:00
Jack Christensen
516c88fde3 Update changelog 2015-09-21 07:54:22 -05:00
Jack Christensen
90b2e0acb7 Add additional testing around listen/notify 2015-09-17 17:40:04 -05:00
Jack Christensen
86837e5576 Add guards against usage of busy connection 2015-09-16 10:22:16 -05:00
Jack Christensen
51407590eb Add LogLevelFromString func 2015-09-16 09:21:51 -05:00
Jack Christensen
23c48c2f87 Add trace logging 2015-09-16 08:40:01 -05:00
Jack Christensen
a1aa06c934 More efficient logging with log levels 2015-09-16 08:20:51 -05:00
Jack Christensen
a2e078597b Add logging to rxMsg
Also benchmark what a log call costs
2015-09-14 10:25:48 -05:00
Jack Christensen
057da9f8e7 Add benchmarks for logging 2015-09-14 10:01:05 -05:00
Jack Christensen
3316ed2ff4 Update changelog 2015-09-12 19:42:15 -05:00
Jack Christensen
93aa2b2e80 ConnPool.Begin retry logic checks connection IsAlive
ErrDeadConn is returned when calling an already dead connection. But the initial failure returns the real error. So we check for IsAlive instead of ErrDeadConn.

Added test for ConnPool.Begin retry logic.
2015-09-12 19:39:37 -05:00
Jack Christensen
6e5fa60c4c Fix cases where net conn write failure was not marking connection as dead
Also added loop to run these timing sensitive tests multiple times.
2015-09-12 19:32:55 -05:00
Jack Christensen
bc4742b80a DRY ConnPool Begin and BeginIso 2015-09-12 19:12:55 -05:00
Jack Christensen
6ac98ef613 Add test for ConnPool.Begin retry
Also fix bug where conn is not released on non ErrDeadConn error
returned from Conn.Begin
2015-09-12 19:10:55 -05:00
Joseph Glanville
4868929ff1 ConnPool.Begin/BeginIso will retry if they Acquire a dead connection 2015-09-11 03:05:43 +10:00
Jack Christensen
8b296b9d58 Encode from net.IP to inet and cidr 2015-09-09 18:49:20 -05:00
Jack Christensen
ee7d621528 Update changelog 2015-09-09 18:31:19 -05:00
Jack Christensen
4ff46becfc Generalize pointer to string uuid transcoding to any non-varchar/text type 2015-09-09 18:07:05 -05:00
Joseph Glanville
2184ffb5e9 Add support for encoding to UUID from string types 2015-09-10 00:58:51 +10:00