1986 Commits

Author SHA1 Message Date
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
cb5ddcd6b6
Update issue templates 2022-07-23 10:43:26 -05:00
Gabor Szabad
396195466c Add logger func wrapper 2022-06-23 20:15:20 -05:00
James Hartig
a814153aeb pgxpool: health check should avoid going below minConns 2022-06-07 18:38:03 -05:00
Jack Christensen
37c3f157bc Add Hijack from v5 2022-06-02 20:04:08 -05:00
Jack Christensen
dc0ad04ff5 Fix batch logging tests 2022-05-12 19:10:02 -05:00
Stepan Rabotkin
4099b447b9 feat: add batch logging 2022-05-12 19:05:08 -05:00
Stepan Rabotkin
bfb19cd4f6 feat: add time duration to error query and copy 2022-05-12 19:05:08 -05:00
Jack Christensen
8b9b4055f3 Release v4.16.1 v4.16.1 2022-05-07 07:14:53 -05:00
Jack Christensen
644bd73dcc Upgrade to pgconn v1.12.1 2022-05-07 07:13:23 -05:00
Jack Christensen
7ceeea6fe6 Fix explicitly prepared statements with describe statement cache mode
fixes https://github.com/jackc/pgx/issues/1196
2022-04-28 07:58:24 -05:00
Jack Christensen
c6335a30d0 Add link to github.com/vgarvardt/pgx-google-uuid 2022-04-23 10:25:08 -05:00
Jack Christensen
8c1815e02e Release v4.16.0 v4.16.0 2022-04-21 20:15:18 -05:00
Jack Christensen
c74f3f058f Add link to https://github.com/otan/gopgkrb5 2022-04-21 20:08:28 -05:00
Jack Christensen
e012ea0bed Upgrade pgconn, pgtype, and pgproto3 2022-04-21 20:05:32 -05:00
Jack Christensen
49a860125f Try to pacify finicky timing test on CI 2022-04-21 19:52:34 -05:00
Jack Christensen
097b6aacb7 Add time to logging failed Exec
fixes #1189
2022-04-21 19:26:25 -05:00
Jack Christensen
bb8c52f7e8 Add doc regarding default pgxpool.Config.MaxConns
refs #1183
2022-04-11 18:49:11 -05:00
Jack Christensen
3ce50c079e Rename dbSavepoint to dbSimulatedNestedTx
https://github.com/jackc/pgx/issues/1161
2022-03-05 08:41:02 -06:00
Andrew Rusakow
a86ece025c Fix single line comment for line endings in mac when sanitizing. 2022-03-04 18:17:40 -06:00
Jack Christensen
b6b24f9e8a Allocate connRows on demand instead of preallocating in bulk
The 64 element preallocatedRows may be pinning memory from previous
queries.

See https://github.com/jackc/pgx/issues/1127
2022-02-19 11:51:25 -06:00
Jack Christensen
1e565b0d44 Handle stmtCache.Get error previously thought impossible
The statement cache is already prefilled, but it is possible for the
ctx to be canceled between when the statement is prepared and when the
statement is retrieved for use.

refs #1156
2022-02-19 11:28:39 -06:00
Jack Christensen
3650fc9f68 Remove comparison with alternatives from readme
lib/pq and go-pg are both in maintenance mode. No point in comparison.
2022-02-12 09:19:55 -06:00
Saimon Shaplygin
4ac1499060 ref: remove anchored code 2022-02-12 09:15:24 -06:00
Isabel Jimenez
71da600c3a exposing stdlib DB connector 2022-02-12 09:11:56 -06:00
Jack Christensen
2b7de82ef4 Release v4.15.0 v4.15.0 2022-02-07 11:03:06 -06:00
Jack Christensen
67401de1c3 Upgrade to pgconn v1.11.0 2022-02-07 10:55:29 -06:00
Jack Christensen
6fea8eba5e Upgrade to pgtype v1.10.0 2022-02-07 10:52:30 -06:00
Jack Christensen
c9eefd852a Upgrade to puddle v1.2.1 2022-02-07 10:48:30 -06:00
Jack Christensen
e8857f04a1 Make BatchResults.Close safe to be called multiple times
https://github.com/jackc/pgx/issues/1138
https://github.com/jackc/pgx/issues/938
2022-02-07 10:44:39 -06:00
Jack Christensen
d02b2ed013 Add batch test for QueryRow without any rows
refs #1150
2022-02-05 20:12:35 -06:00
djsavvy
9eccdd6a81 Clarify that Values() and Scan() require Next() to have been called on the rows object 2022-02-05 20:06:01 -06:00
Jack Christensen
cf0de913ee Use pgtype.UUID for test instead of ext UUID 2021-11-29 12:29:02 -05:00
Jack Christensen
9fdaf7da81 Release v4.14.1 v4.14.1 2021-11-28 22:46:52 -05:00
Jack Christensen
5b91cac132 Update to pgtype v1.9.1 2021-11-28 22:43:59 -05:00
Jille Timmermans
1d606a91b8 Change constant definition syntax so they show up in godoc
for TxAccessMode, TxDeferrableMode and TxIsoLevel

After this commit, Godoc understands these are the valid values of these
types and shows them together in the documentation.
2021-11-22 09:47:15 -06:00
Jack Christensen
058f346079 Start pgxpool background health check after initial connections
Otherwise the health check and the create initial connection(s) may both
create connections. While this generally wouldn't be a real problem it
did cause TestPoolBackgroundChecksMinConns to flicker on CI.
2021-11-20 11:19:10 -06:00
Jack Christensen
a55e88ee48 Do not run CI with verbose
Makes it very difficult to see what is actually failing.
2021-11-20 10:53:51 -06:00
Jack Christensen
9da0a7aef7 Release v4.14.0 v4.14.0 2021-11-20 10:48:31 -06:00
Jack Christensen
968a00094e Further increase wait times on timing tests for CI 2021-11-20 10:43:13 -06:00
Jack Christensen
885f39c368 Increase wait time in timing sensitive test 2021-11-20 10:28:52 -06:00
Jack Christensen
09c360f8aa Update supported / tested platforms 2021-11-20 10:25:10 -06:00
Jack Christensen
a9f8400b01 Upgrade pgx dependency
Fix test that was comparing times directly instead of using Equal.
2021-11-20 10:20:02 -06:00
Jack Christensen
a457da8bff Unpin extendedQueryBuilder memory immediately after use
refs #1110
2021-11-13 17:12:09 -06:00
Jack Christensen
851091fdf4 Improve Query docs regarding error detection 2021-11-13 04:42:28 -06:00
Daniel
6cd6c43dcb Fix failing test 2021-11-01 07:26:49 -05:00
Daniel
8bc6aa6b49 Fix goroutine leak and unclosed connections 2021-10-30 10:25:09 -05:00
Daniel
36708a1cc6 Eager initialize minpoolsize on connect 2021-10-30 10:25:09 -05:00
urso
044ba47522 Add zerologadapter.NewContextLogger
This change introduces a new zerologadapter that allows
users to pass the actual logger via context.Context. Especially HTTP
middleware might choose to use `(*zerolog.Logger).WithContext` and
`zerolog.Ctx`. Allowing users to extract the logger from the context
keeps the full enriched logger available when pgx emits logs.
2021-10-30 08:52:59 -05:00