s.solodyagin
f69f8d1b5c
rename module
2024-05-07 09:39:29 +03:00
s.solodyagin
357666cb6f
Merge remote-tracking branch 'upstream/master'
2024-03-28 17:24:35 +03:00
Jack Christensen
72b022bcfc
Update godoc link to v2
2024-03-01 08:58:09 -06:00
Jille Timmermans
182cc3d803
Fix documentation of NewPool
2024-01-27 19:02:01 -06:00
s.solodyagin
71ab3b349b
chore: change module name after fork
2024-01-15 16:17:50 +03:00
Jack Christensen
825ae07315
Release v2.2.1
2023-07-15 10:02:06 -05:00
Jack Christensen
8101c0dff4
CreateResource cannot overflow pool
2023-07-06 21:19:21 -05:00
Jack Christensen
c5402ce536
Release v2.2.0
2023-02-11 08:55:31 -06:00
Jack Christensen
80dbe4cffe
Update golang.org/x/sync and github.com/stretchr/testify
2023-02-11 08:53:10 -06:00
Jack Christensen
02c8336f0d
Test Go 1.20 on CI
2023-02-11 08:52:45 -06:00
Jack Christensen
ca6e33dd4b
Update CI to drop testing 1.18
2023-01-14 09:36:38 -06:00
Jack Christensen
cc12efc05a
Revert "Revert "Use Go 1.19 atomics""
...
This reverts commit fc4042cf23 .
With the release of Go 1.20, we can use the better atomics in Go 1.19
and remove the external dependency.
2023-01-14 09:25:37 -06:00
Jack Christensen
5174aa0023
Update example usage in README.md
2022-12-28 09:20:49 -06:00
Jack Christensen
c131081c8e
Update changelog
2022-11-12 10:32:44 -06:00
Jack Christensen
e4ffbb7aa0
Updated README.md
2022-11-12 10:31:12 -06:00
Jack Christensen
fc4042cf23
Revert "Use Go 1.19 atomics"
...
This reverts commit 86ffb019e1 .
Given https://github.com/jackc/pgx/issues/1354 the temporary dependency
on go.uber.org/atomic for Go 1.18 support is worthwhile.
2022-11-12 10:25:48 -06:00
Jack Christensen
08d6ffb88b
Update changelog
2022-11-11 18:56:56 -06:00
Jack Christensen
2f17b3e259
Fix create resource concurrently with Stat call race
...
https://github.com/jackc/pgx/issues/1148#issuecomment-1304898720
2022-11-11 18:55:27 -06:00
Jack Christensen
eca38babce
Release v2.1.0
2022-10-28 18:35:17 -05:00
Jan Dubsky
86ffb019e1
Use Go 1.19 atomics
2022-10-28 18:20:56 -05:00
Jan Dubsky
d970a39050
Use generational stack for idle connections
2022-10-28 18:20:56 -05:00
Jan Dubsky
3009dbab62
[pool] Increase test coverage
2022-10-28 18:20:56 -05:00
Jan Dubsky
89668fae42
[pool] Replace queue with stack
2022-10-28 18:20:56 -05:00
Jan Dubsky
30b91519a0
Code review changes
2022-10-28 18:20:56 -05:00
Jan Dubsky
8663ac8d76
Go mod tidy
2022-10-28 18:20:56 -05:00
Jan Dubsky
11c9fbfb3c
Perform logarithmic number of steps in AcquireAllIdle
2022-10-28 18:20:56 -05:00
Jan Dubsky
2c35738882
Use circular queue for idle connections
2022-10-28 18:20:56 -05:00
Jan Dubsky
021588b93e
Use semaphore rather than conditional variable
2022-10-28 18:20:51 -05:00
Jan Dubsky
9df21ce1a1
Separate duplicate code to functions
2022-10-28 18:20:03 -05:00
Jan Dubsky
6214680aa8
Replace useless locking by atomic variable
2022-10-28 18:20:03 -05:00
Jan Dubsky
93a3f7de51
Fix goroutine leak
2022-10-28 18:20:03 -05:00
Jan Dubsky
58f94f0470
Add test for release after acquire
2022-10-28 18:20:03 -05:00
Jan Dubsky
4fbc609092
Add banchmarks with cancelled acquires
2022-10-28 18:20:03 -05:00
Jan Dubsky
47b52af713
Add acquire benchmarks
2022-10-28 18:20:03 -05:00
Jack Christensen
f6fee6af77
Release v2.0.1
2022-10-28 18:11:10 -05:00
Jack Christensen
d344a18fdb
Add to the destructWG wait group while cond.L is locked
...
Otherwise, if many constructors are underway while the pool is closed it
is possible destructWG will get to 0 while the Wait in Close is underway
and then Add will be called again which is disallowed.
From the docs:
Note that calls with a positive delta that occur when the counter is
zero must happen before a Wait.
https://github.com/jackc/pgx/issues/1356
2022-10-27 20:46:47 -05:00
Jack Christensen
2ccdbf199a
Release v2.0.0
2022-09-17 08:48:15 -05:00
Jack Christensen
0f8cbb548a
Update changelog
2022-09-03 13:12:44 -05:00
Jack Christensen
1b5d140faa
Pull in v1 changelog
2022-09-03 13:12:03 -05:00
Jack Christensen
30b2cb627e
Replace interface{} with any
2022-09-03 13:10:10 -05:00
Jack Christensen
fdc2381cbe
Do not cancel resource construction when Acquire is canceled
...
https://github.com/jackc/pgx/issues/1287
https://github.com/jackc/pgx/issues/1259
2022-09-03 13:08:12 -05:00
Jack Christensen
98e0d10515
Soften the policy of not accepting feature and performance changes
2022-09-03 11:47:11 -05:00
Jack Christensen
b1aadee38e
NewPool takes Config
...
This allows for backwards compatible additions. No features are planned
but this would make it easier if they are added.
2022-09-03 11:45:07 -05:00
James Hartig
f63192c063
Fix race with background Acquire creation
2022-08-27 18:02:55 -05:00
James Hartig
da694536ff
Create resources in the background in Acquire
2022-08-27 07:47:02 -05:00
Jack Christensen
4ec26629b3
Replace Travis CI with Github Actions CI
2022-08-27 07:27:21 -05:00
Jack Christensen
f5fa474129
Update changelog
2022-07-30 12:22:16 -05:00
Jack Christensen
6b44286e08
Add Reset()
2022-07-30 12:12:56 -05:00
Jack Christensen
2c6a3a9afd
Move to v2
2022-07-30 12:12:43 -05:00
Jack Christensen
d91b446b0e
Tweak status message
2022-07-30 12:12:22 -05:00