commit db transaction after setting work_mem

This commit is contained in:
Lex Berezhny 2020-07-16 23:27:24 -04:00
parent 2ae700feb3
commit e2aae23575

View file

@ -175,6 +175,7 @@ def context(with_timer: str = None) -> 'QueryContext':
def set_postgres_settings(connection, _):
cursor = connection.cursor()
cursor.execute('SET work_mem="500MB";')
cursor.execute('COMMIT;')
cursor.close()