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

query_timeout limits whole transaction time #579

Open
vincentcr opened this issue Mar 11, 2021 · 1 comment · May be fixed by #629
Open

query_timeout limits whole transaction time #579

vincentcr opened this issue Mar 11, 2021 · 1 comment · May be fixed by #629

Comments

@vincentcr
Copy link

query_timeout closes any connection with a transaction older than query_timeout.

Seems like the same issue as #22 which was meant to be fixed 2 years ago.

Steps to repro:

> BEGIN;
> /* wait query_timeout seconds */
> SELECT 1;
ERROR:  query timeout
server closed the connection unexpectedly
	This probably means the server terminated abnormally
	before or while processing the request.

Tested with 1.15.0 and 1.12.0.

@jcoleman
Copy link
Contributor

jcoleman commented Jul 9, 2021

I don't think this is describing the same thing as #22. Rather than the whole transaction being limited by query_timeout (I've confirmed I can't reproduced that) what you're actually noting is that query_timeout is effectively acting like idle_transaction_timeout, which is IMO still unexpected.

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

Successfully merging a pull request may close this issue.

2 participants