-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: set max statement time on a per query basis #52240
Comments
Thumbs down for making this a priority, if only because no existing Postgres driver will have built-in support for this syntax. |
I understand that some drivers make this an option, for example in JDBC:
But others do not (I believe the Python PG driver only offers it on a connection basis). I think this may end up a critical piece of last-resort intervention analogous to JOIN HINTS and therefore that it still merits further consideration. |
@rafiss fyi |
The PGJDBC |
Okay, so are we good to close this? |
No, I don't think so. We don't have this option available in all drivers. |
We have marked this issue as stale because it has been inactive for |
We now have a statement_timeout and a idle_in_session_timeout (introduced in 20.2). In #5924 we plan to add a idle_in_transaction_session_timeout. We should also add a per-query timeout (instead of a session variable/cluster setting). This is analogous to an INDEX or JOIN hint in that we are instructing specific behavior for an individual query.
In MariaDB, they offer this via
max_statement_time
I couldn't find an example in Postgres (I believe it only allows for the connection or session settings).
Jira issue: CRDB-3972
The text was updated successfully, but these errors were encountered: