From de6bfdea406360201f53a9105ee8584271262555 Mon Sep 17 00:00:00 2001 From: BodoBolero Date: Fri, 28 Feb 2025 20:44:26 +0100 Subject: [PATCH] set statement_timeout for non-pooled connection --- test_runner/performance/test_perf_oltp_large_tenant.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test_runner/performance/test_perf_oltp_large_tenant.py b/test_runner/performance/test_perf_oltp_large_tenant.py index acb0b9cc993f..f64bf67eb32e 100644 --- a/test_runner/performance/test_perf_oltp_large_tenant.py +++ b/test_runner/performance/test_perf_oltp_large_tenant.py @@ -31,6 +31,10 @@ def run_test_pgbench(env: PgCompare, custom_scripts: str, duration: int): options = env.pg.default_options.get("options", "") # drop password from the connection string by passing password=None and set password separately connstr = env.pg.connstr(password=None, options=options) + # if connstr does not contain pooler we can set statement_timeout to 0 + if "pooler" not in connstr: + options = "-cstatement_timeout=0 " + env.pg.default_options.get("options", "") + connstr = env.pg.connstr(password=None, options=options) script_args = [ "pgbench",