mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-03 13:30:38 +00:00
Don't override other options than statement_timeout in test conn string.
In commit 6985f6cd6c, I tried passing extra GUCs in the 'options' part
of the connection string, but it didn't work because the pgbench test
overrode it with the statement_timeout. Change it so that it adds the
statement_timeout to any other options, instead of replacing them.
This commit is contained in:
@@ -84,9 +84,8 @@ def run_test_pgbench(env: PgCompare, scale: int, duration: int, workload_type: P
|
|||||||
|
|
||||||
if workload_type == PgBenchLoadType.INIT:
|
if workload_type == PgBenchLoadType.INIT:
|
||||||
# Run initialize
|
# Run initialize
|
||||||
init_pgbench(
|
options = "-cstatement_timeout=1h " + env.pg.default_options["options"]
|
||||||
env, ["pgbench", f"-s{scale}", "-i", env.pg.connstr(options="-cstatement_timeout=1h")]
|
init_pgbench(env, ["pgbench", f"-s{scale}", "-i", env.pg.connstr(options=options)])
|
||||||
)
|
|
||||||
|
|
||||||
if workload_type == PgBenchLoadType.SIMPLE_UPDATE:
|
if workload_type == PgBenchLoadType.SIMPLE_UPDATE:
|
||||||
# Run simple-update workload
|
# Run simple-update workload
|
||||||
|
|||||||
Reference in New Issue
Block a user