Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase client timeout when bucardo connects to source or a destination DB #262

Open
siddharth7 opened this issue May 3, 2024 · 1 comment

Comments

@siddharth7
Copy link

We have set a global statement timeout for queries on Postgres. While trying to add a sync using bucardo add sync command, the bucardo query that runs on source db fails to acquire a lock in time and gives a statement timeout error from what we can see from our logs. Is there an option to set query timeout for the client used by bucardo to connect to postgres instances?

@jonjensen
Copy link
Member

@siddharth7 I don't know offhand, but I do see that Bucardo starts its transactions with:

SET statement_timeout = 0

here: https://github.com/bucardo/bucardo/blob/master/Bucardo.pm#L5129

so unless the code is running through a different path, I wouldn't expect a timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants