Puskar Basu
3f4eaae1a8
Fix db client deadlocks with non-blocking cleanup and RW locks ( #4918 )
2025-12-16 21:19:27 +05:30
Nathan Wallace
9c3791fafd
Fix #4809 : Add nil checks for sessions map after Close() (rebased) ( #4883 )
...
* Add test for #4809 : BeforeClose should handle nil sessions map
This test verifies that the BeforeClose callback checks if c.sessions map
has been nil'd by Close() before attempting to delete from it.
The test fails as expected without the fix, proving the bug exists.
Bug: #4809
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
* Fix #4809 : Add nil check in BeforeClose for sessions map
Add nil check in BeforeClose callback before accessing c.sessions map.
This prevents panic when the callback executes after Close() has nil'd
the map.
Fixes #4809
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
---------
Co-authored-by: Claude <noreply@anthropic.com >
2025-11-16 10:53:39 -05:00
Nathan Wallace
99fd81ccf6
Fix memory leak in DatabaseSession management (issue #3737 ) ( #4742 )
2025-11-11 18:35:16 +08:00
Puskar Basu
e19d35c457
chore: update module to v2 and bump Go version to 1.24 ( #4597 )
2025-07-07 16:03:56 +05:30
Puskar Basu
da2f3ecc03
Upgrade to pipe-fittings v2, go-kit v1 ( #4485 )
2025-03-06 16:34:18 +05:30
kai
e5b1927a63
tidy imports
2024-09-27 18:14:28 +05:30
kai
cb681c67cc
compiles but needs testing
2024-09-27 18:14:28 +05:30
kai
cd07bf20f1
working on it
2024-09-27 18:13:12 +05:30
loselarry
dcf3d89b01
chore: fix function names in comment ( #4240 )
...
Signed-off-by: loselarry <bikangning@yeah.net >
2024-04-10 10:16:18 +01:00
Binaek Sarkar
a3a714d6cd
Fixes issue where temporary tables are dropped in interactive prompt when pool connections are recycled. Closes #3359 . Closes #3781
2023-09-06 16:46:40 +01:00
Binaek Sarkar
132b3a7c32
Fixes issue where metaquery hangs in interactive prompt. Closes #3775
2023-08-28 17:21:30 +01:00
Binaek Sarkar
08b447a261
Differentiate between user and system queries using application name. Closes #3600
2023-08-25 16:50:27 +01:00
Binaek Sarkar
e5e8105657
Fixes issue where caching is still enabled for plugins compiled with SDKv4. Closes #3427
2023-05-18 15:02:49 +01:00
kaidaguerre
df9c3a253a
Optimize RefreshConnections by cloning schemas where possible. Optimize plugineManager.Get when retrieving multiple connections from same plugin. Closes #3236
2023-03-16 14:43:56 +00:00
Binaek Sarkar
ee8b6647c4
Rationalising 'status hooks'. Do not show spinner when setting status, instead require an explicit Show. #2432
2023-03-14 11:48:14 +00:00
Patrick Decat
fff3689ca8
Set minimum connection to 0, as thousands of connections are created if it is unset
2023-03-13 14:25:39 +00:00
kaidaguerre
92396d77c0
Remove connection pool min size. Remove need to create empty mod introspection tables if introspection is not enabled. Remove connection pool min size. Closes #3207
...
* Remove all references to prepared statements
* remove sessionInitWaitGroup
2023-03-09 16:55:08 +00:00
Binaek Sarkar
d0ede13d4b
Make database start timeout configurable. Closes #3038
2023-02-14 17:33:57 +00:00
Binaek Sarkar
18a1c51597
Upgrades 'pgx' to v5. Closes #2776
2022-11-23 17:34:21 +00:00
kaidaguerre
404dd35e21
Update database code to use pgx interface so we can leverage the connection pool hook functions to pre-warm connections. Closes #2422 ( #2438 )
...
* Provide feedback for failed prepared statements
* Move error functions to error_helpers
* Make maintenance client retriable
2022-10-05 12:38:57 +01:00