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
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
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
Jack Christensen
fe0fb3b24d
Clean up docs for new ParseConfigOptions feature
2022-07-20 06:28:08 -05:00
Jack Christensen
69b99209fb
Run go fmt
2022-07-20 06:06:54 -05:00
yun.xu
cdd2cc4124
EC-2198 change for sslpassword
2022-07-20 06:05:06 -05:00
Eric McCormack
7402796e02
Delete pgconn.iml
2022-07-20 06:05:06 -05:00
Eric McCormack
c56b38c1f6
SSL password - changes based on community feedback
2022-07-20 06:05:06 -05:00
Eric McCormack
32ec44f726
Add support for SslPassword
2022-07-20 06:05:06 -05:00
sergey.bashilov
a18df2374a
add ignore not preferred err flag in connect func
2022-07-02 07:04:50 -05:00
sergey.bashilov
cdc240d920
rename error
2022-07-02 07:04:50 -05:00
sergey.bashilov
618a12a094
remove HasPreferStandbyTargetSessionAttr, rename error to indicate server is not standby
2022-07-02 07:04:50 -05:00
sergey.bashilov
1b6543f29c
fix typos
2022-07-02 07:04:50 -05:00
sergey.bashilov
25935a39b6
add prefer-standby target_session_attrs
2022-07-02 07:04:50 -05:00
Oliver Tan
7ddbd74d5e
stop ignoring ErrorResponse during GSS auth
2022-05-25 06:22:18 -05:00
Jack Christensen
831fc211bc
Release v1.12.1
2022-05-07 07:11:19 -05:00
Rafi Shamim
1d398317ca
Stop ignoring ErrorResponse during SCRAM auth
...
The server may send back an ErrorResponse during SCRAM auth, and these
messages may contain useful information that described why
authentication failed. For example, if the password was invalid.
2022-05-07 07:03:52 -05:00
Eno Compton
0135721378
Add support for Unix sockets on Windows
...
Fixes #1199 .
2022-05-07 06:59:53 -05:00
sireax
84e8238fa0
Fix: setting krbspn and krbsrvname did'n work
2022-04-26 08:54:24 -05:00
Jack Christensen
9bb49f990f
Release v1.12.0
2022-04-21 19:49:01 -05:00
Jack Christensen
1b244eec5d
Upgrade to pgproto3 v2.3.0
2022-04-21 19:48:43 -05:00
Jack Christensen
beb4e2cfbc
SQLCODE 42501 is fatal connect error
...
Don't try fallback configs. Match libpq behavior.
fixes https://github.com/jackc/pgconn/issues/108
2022-04-16 07:26:56 -05:00
Oliver Tan
90ef5bba3f
add GSSAPI authentication
...
This commit adds the GSSAPI authentication to pgx. This roughly follows
the lib/pq implementation:
* We require registering a provider to avoid mass dependency inclusions
that may not be desired (https://github.com/lib/pq/issues/971 ).
* Requires the pgproto3 package be updated. I've included my custom fork
for now.
2022-04-15 08:17:48 -05:00
Matthew Gabeler-Lee
5982e4b4f8
fix detection of database does not exist error during connect
2022-04-09 07:47:59 -05:00
Jack Christensen
b7a85d1a6f
Consider any "0A000" error a possible cached plan changed error
...
https://github.com/jackc/pgx/issues/1162
2022-03-05 08:23:58 -06:00
William Storey
ded272b1f2
Remove documentation line stating only one IP is used
...
With `expandWithIPs()` (added in #14 ), we try all IPs.
2022-02-19 08:10:07 -06:00
William Storey
ccb96b8aca
Fix typos in comments
2022-02-19 08:10:07 -06:00
Jack Christensen
34bf0a5df9
Upgrade golang.org/x/text to v0.3.7
...
https://github.com/jackc/pgconn/issues/103
2022-02-19 08:00:51 -06:00
Jack Christensen
3e5de44314
Release v1.11.0
2022-02-07 10:54:39 -06:00
Jack Christensen
05d532b5df
Fix connect when receiving NoticeResponse
...
refs #102
2022-01-20 16:41:47 -06:00
Oscar
109c4c2d95
fix standby mode validation
2021-12-28 09:31:38 -06:00
Oscar
3aaf3409ce
remove redundant map value type
2021-12-28 09:31:38 -06:00
Oscar
3ce8a835e1
add support for read-only, primary, standby, prefer-standby target_session_attributes
2021-12-28 09:31:38 -06:00
Blake Embrey
a1852214fe
Keep status connecting after tls
2021-12-27 14:28:33 -06:00
Blake Embrey
b148a14bbe
Fix defer usage
2021-12-27 14:28:33 -06:00
Blake Embrey
01a6923376
Rename fn to new
2021-12-27 14:28:33 -06:00
Blake Embrey
024de4c8f3
Unwatch and re-watch tls
2021-12-27 14:28:33 -06:00
Blake Embrey
c0a0be876d
Fix TLS connection timeout
2021-12-27 14:28:33 -06:00
James Hartig
5a5260b73d
feat: support port in ip from LookupFunc to override config
...
Fixes #97
2021-12-18 08:16:31 -06:00
Jack Christensen
662ecb496f
Release v1.10.1
2021-11-20 09:56:46 -06:00
Jack Christensen
146268e829
Move context test above bad statement cleanup
2021-11-13 04:12:35 -06:00
Georges Varouchas
cd7dcd5802
have lru.Get() always check if context is already expired
2021-11-13 04:10:45 -06:00
Georges Varouchas
141f132ae7
add a unit test on LRU context check
...
TestLRUContext highlights the lack of context check when querying for a cached value
2021-11-13 04:10:45 -06:00
Jack Christensen
162dc65eff
Make ContextWatcher concurrency safe
...
fixes #94
2021-11-06 08:57:49 -05:00
Rueian
290ee79d1e
feat: remove unnecessary pending for CopyInResponse
2021-10-02 07:36:21 -05:00
Kei Kamikawa
3bee0c6398
removed lines to read conn
2021-08-28 08:52:37 -05:00
Jack Christensen
53f5fed36c
Release v1.10.0
2021-07-24 10:52:26 -05:00