Jack Christensen
579a320c1c
pgconn.SafeToRetry checks for wrapped errors
...
Use errors.As instead of type assertion.
Port 4e2e7a040579c1999c0766642d836eb28c6e2018 to v5
Credit to tjasko
2024-05-09 17:59:16 -05:00
Oleksandr Redko
60a01d044a
Fix typos in doc comments
2024-04-17 12:00:02 -05:00
Jack Christensen
a3d9120636
Add SeverityUnlocalized field to PgError / Notice
...
https://github.com/jackc/pgx/issues/1971
2024-04-07 08:58:10 -05:00
Jack Christensen
f654d61d79
Make note about possible parse config error message redaction change
2024-01-12 17:56:13 -06:00
Jack Christensen
5d26bbefd8
Make pgconn.ConnectError and pgconn.ParseConfigError public
...
fixes #1773
2024-01-12 17:52:25 -06:00
Samuel Stauffer
9ab9e3c40b
Unwrap errors in normalizeTimeoutError
2023-12-16 11:15:35 -06:00
Jack Christensen
1a314bda3b
pgconn.Timeout() no longer considers `context.Canceled` as a timeout error.
...
https://github.com/jackc/pgconn/issues/81
2022-09-17 10:18:06 -05:00
Jack Christensen
0f7b95c3a4
Merge remote-tracking branch 'pgconn/master' into v5-dev
2022-07-12 06:45:54 -05:00
Jack Christensen
5714896b10
Restructure sending messages
...
Use an internal buffer in pgproto3.Frontend and pgproto3.Backend instead
of directly writing to the underlying net.Conn. This will allow tracing
messages as well as simplify pipeline mode.
2022-05-21 11:06:44 -05:00
Jack Christensen
19ec4d505f
Import to pgx main repo in pgconn subdir
2021-12-04 13:51:24 -06:00