mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-16 20:50:37 +00:00
avoid duplicate parameter, increase timeout
This commit is contained in:
committed by
Dmitry Rodionov
parent
7cd68a0c27
commit
cdfa9fe705
@@ -299,7 +299,9 @@ class PgProtocol:
|
||||
# change it by calling "SET statement_timeout" after
|
||||
# connecting.
|
||||
options = result.get('options', '')
|
||||
result['options'] = f'-cstatement_timeout=120s {options}'
|
||||
if "statement_timeout" not in options:
|
||||
options = f'-cstatement_timeout=120s {options}'
|
||||
result['options'] = options
|
||||
return result
|
||||
|
||||
# autocommit=True here by default because that's what we need most of the time
|
||||
|
||||
@@ -155,7 +155,7 @@ def start_pgbench_intensive_initialization(env: PgCompare, scale: int, done_even
|
||||
f'-s{scale}',
|
||||
'-i',
|
||||
'-Idtg',
|
||||
env.pg.connstr(options='-cstatement_timeout=360s')
|
||||
env.pg.connstr(options='-cstatement_timeout=600s')
|
||||
])
|
||||
|
||||
done_event.set()
|
||||
|
||||
Reference in New Issue
Block a user