3205 Commits

Author SHA1 Message Date
Jack Christensen
ef5655c563 Merge remote-tracking branch 'pgconn/master' into v5-dev 2022-08-19 17:36:29 -05:00
Stas Kelvich
15f8e6323e Fix tests that check tls.Config.ServerName -- with SNI this field
is filled, unless SNI is delibaretely disabled. Also, do not set
SNI when host is an IP address as per RFC 6066.
2022-08-19 17:35:33 -05:00
Stas Kelvich
e3406d95f9 Add test coverage for client SNI 2022-08-19 17:35:33 -05:00
Stas Kelvich
067771b2e6 Set SNI for SSL connections
This allows an SNI-aware proxy to route connections. Patch adds a new
connection option (`sslsni`) to opt out of the SNI, to have the same
behavior as `libpq` does. See more in `sslsni` sections at
<https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-PARAMKEYWORDS>.
2022-08-19 17:35:33 -05:00
Jack Christensen
8eae4a2a3e Merge remote-tracking branch 'pgconn/master' into v5-dev v5.0.0-beta.2 2022-08-13 10:19:49 -05:00
Nathan Giardina
faabb0696f Fix for timeout when a single node has timed out, created a new context to allow for each db node to timeout individually 2022-08-13 10:18:55 -05:00
Jack Christensen
c842802d65 Failsafe timeout for background pool connections
Do not override existing connect timeout.
2022-08-13 09:49:06 -05:00
Jack Christensen
7c6a31f9d2 CopyFrom parses strings to encode into binary format
https://github.com/jackc/pgx/issues/1277
https://github.com/jackc/pgx/issues/1267
2022-08-13 09:30:29 -05:00
Jack Christensen
02d9a5acd8 Fix naming of some tests 2022-08-13 08:41:06 -05:00
Jack Christensen
8256ab147f Add build tag to skip default PG type registration
https://github.com/jackc/pgx/issues/1273#issuecomment-1207338136
2022-08-13 08:09:44 -05:00
Jack Christensen
906f709e0c Fix typo in Windows code
https://github.com/jackc/pgx/issues/1274
2022-08-11 20:59:37 -05:00
Jack Christensen
33b782a96d Potential fix for Windows
https://github.com/jackc/pgx/issues/1274
2022-08-11 20:55:50 -05:00
Jack Christensen
1453cd4b97 Update v5 status 2022-08-06 07:11:11 -05:00
Jack Christensen
1819959d07 Merge branch 'master' into v5-dev v5.0.0-beta.1 2022-08-06 06:41:33 -05:00
Jack Christensen
8f0c9557e4 Merge remote-tracking branch 'pgconn/master' into v5-dev 2022-08-06 06:33:10 -05:00
Jack Christensen
1f64122c42 Tweak changelog 2022-08-06 06:27:32 -05:00
Jack Christensen
5768a0c0bd Update changelog v4.17.0 2022-08-06 06:24:41 -05:00
Jack Christensen
7ce634d62b Ensure there is a timeout for background pool connections 2022-08-06 06:22:17 -05:00
Jack Christensen
f3e04b28cc Go 1.19 go fmt 2022-08-06 06:20:50 -05:00
Jack Christensen
7ad36f386d Upgrade dependencies 2022-08-06 06:11:07 -05:00
Jack Christensen
4c048d40d8 Update changelog 2022-08-06 06:07:40 -05:00
Jack Christensen
5192d9acc1 Upgrade 3rd party dependencies 2022-08-06 06:00:03 -05:00
Jack Christensen
0a539a9d92 Upgrade pgproto3 2022-08-06 05:58:55 -05:00
Peter Feichtinger
3cb99532f5 pgxpool: Make BeginTx success case clearer 2022-08-04 20:22:57 -05:00
Jack Christensen
0eda0109ca Add Pool.Reset() 2022-07-30 12:22:29 -05:00
Jack Christensen
83670d675d Upgrade golang.org/x/crypto 2022-07-30 12:17:00 -05:00
Jack Christensen
957671a6ec Use puddle v2 2022-07-30 12:16:16 -05:00
Jack Christensen
033fc6f62a Rename pgxpool.NewConfig to NewWithConfig
https://github.com/jackc/pgx/issues/1264
2022-07-30 09:16:42 -05:00
Jack Christensen
c3258b7f52 Fix scan pointer to pointer to nil slice
https://github.com/jackc/pgx/issues/1263
2022-07-30 09:10:50 -05:00
James Hartig
91c9e841e1 Ignore cancellation in puddle constructor
Fixes #1259
2022-07-30 07:54:16 -05:00
Jack Christensen
88079de700
Update issue templates 2022-07-30 07:46:10 -05:00
Jack Christensen
7f382f5190 Better fuzz testing and fix several bugs it found
Fix infinite loop in AuthenticationSASL.Decode
Fix panic in CommandComplete.Decode
Fix panic in DataRow.Decode
Fix panic in NotificationResponse.Decode
2022-07-23 16:13:06 -05:00
Jack Christensen
9d0f27bc4b Initial fuzz testing and fix
Initial fuzz testing of pgproto3 found a panic
2022-07-23 15:22:28 -05:00
Jack Christensen
2da0a11c52 Skip some examples on CockroachDB 2022-07-23 10:52:35 -05:00
Jack Christensen
cb5ddcd6b6
Update issue templates 2022-07-23 10:43:26 -05:00
Jack Christensen
ce378b4d9c Skip example on Cockroach DB 2022-07-23 10:21:01 -05:00
Jack Christensen
5cee04a026 Add child records docs and examples 2022-07-23 10:11:13 -05:00
Jack Christensen
4739f79fca More doc tweaks 2022-07-23 09:42:46 -05:00
Jack Christensen
3595561d9a More doc improvements 2022-07-23 09:29:25 -05:00
Jack Christensen
e487ab0886 Docs should emphasize CollectRows and ForEachRow 2022-07-23 09:04:03 -05:00
Jack Christensen
83780b85b5 Remove pgx logging code moved to tracelog 2022-07-23 08:54:59 -05:00
Jack Christensen
68b7e12df2 Add examples 2022-07-23 08:52:01 -05:00
Jack Christensen
9a61fc250f Recommend CollectRows in ConnQuery docs 2022-07-23 08:31:37 -05:00
Jack Christensen
4087119005 Add Conn.Query example 2022-07-23 08:24:44 -05:00
Jack Christensen
178a84261f Improve Query docs 2022-07-23 07:53:02 -05:00
Jack Christensen
cb48716c67 Update to new package path 2022-07-23 07:31:14 -05:00
Jack Christensen
d433545662 Remove obsolete doc 2022-07-23 07:06:22 -05:00
Jack Christensen
f07ad22f14 Update PgBouncer docs 2022-07-23 07:04:32 -05:00
Jack Christensen
7c81972938 Update line wrapping in docs 2022-07-23 07:04:23 -05:00
Jack Christensen
fe0fb3b24d Clean up docs for new ParseConfigOptions feature 2022-07-20 06:28:08 -05:00