Add MAX_STATEMENT_TIME resource limit (#523)

* Add MAX_STATEMENT_TIME to resource_limits

* Move version check for resource_limits to implementations
This commit is contained in:
Maximilian Stinsky 2023-04-07 10:20:49 +02:00 committed by GitHub
parent 21e42b5777
commit 526e674e6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 177 additions and 29 deletions

View file

@ -17,3 +17,9 @@ def use_old_user_mgmt(cursor):
def supports_identified_by_password(cursor):
return True
def server_supports_alter_user(cursor):
version = get_server_version(cursor)
return LooseVersion(version) >= LooseVersion("10.2")