Skip to content

Fix statement_timeout interrupting most queries - #737

Open
palkan wants to merge 1 commit into
sparklemotion:mainfrom
palkan:fix/statement-timeout
Open

Fix statement_timeout interrupting most queries#737
palkan wants to merge 1 commit into
sparklemotion:mainfrom
palkan:fix/statement-timeout

Conversation

@palkan

@palkan palkan commented Aug 25, 2026

Copy link
Copy Markdown

When statement_timeout is set, the queries triggering the progress handler more than once are interrupted regardless of the timeout value: the current implementation just doesn't use the configured timeout and set the deadline to currentTime (see the diff).

Fast queries still complete (because they trigger the progress handler only once), so it may seem to work but in reality it doesn't. (I caught this bug while writing a test confirming the timeout works in my app; haven't seen in prod env though.)

(A similar bug/fix was reported/proposed earlier in #705).

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 this pull request may close these issues.

1 participant