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

Improved error for timeout #96

Open
ghivert opened this issue Nov 25, 2024 · 1 comment
Open

Improved error for timeout #96

ghivert opened this issue Nov 25, 2024 · 1 comment

Comments

@ghivert
Copy link

ghivert commented Nov 25, 2024

Hi!

Currently, when running in a timeout, for example with the query SELECT sub.ret FROM (SELECT pg_sleep(10), 'OK' AS ret) AS sub, the error returned is {error, closed}.

Do you think it would be possible to return the error {error, timeout} instead?

@tsloughter
Copy link
Collaborator

Great point, let me see.

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