-
Notifications
You must be signed in to change notification settings - Fork 42
Description
Describe the bug
Hello @debba, I've spoked with u on Discord.
When I connect to database, I got a timeout error while tabularis try to load schemas.
After a deep analysis i've found the issue.
I'm trying to connect to my company database, but it use spooler to control the connections.
pgBouncer limit 1 connection per client, but the max_connections property is hard coded as 10.
tabularis/src-tauri/src/pool_manager.rs
Line 154 in b0e4137
| .max_connections(10) |
I've changed to 1 and my connection worked properly!
My propose is to create a field in config to let each user to set the max connection dynamically.
I've created the config field in tabularis settings already, I've tested it and everything is working fine!
cause you have any other idea, just let me know!
I've created a commit, but don't have sure how to open MR here (couldn't found in docs)
case want to talk in discord dm my nick there is erfo
To Reproduce
Just connect to database with pgBouncer limiting maxconnection per client = 1) that will see the timeout error!
OS Version
macOS 14.2
Tabularis Version
v0.9.5
Relevant Log Output