Skip to content

[Bug]: Timeout to load schemas after connect to database (POSTGRES) #71

@ealvesss

Description

@ealvesss

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.

.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!

Image

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


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions