You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Script runs smoothly as expected (and how it did with psycopg2==2.8.6)
Actual behavior
Script crashes
INFO:root:Checking table simplified_water_polygons
Traceback (most recent call last):
File "scripts/get-external-data.py.1", line 108, in index
cur.execute('''VACUUM ANALYZE "{temp_schema}"."{name}";'''
psycopg2.errors.ActiveSqlTransaction: VACUUM cannot run inside a transaction block
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts/get-external-data.py.1", line 294, in <module>
main()
File "scripts/get-external-data.py.1", line 284, in main
this_table.index()
File "scripts/get-external-data.py.1", line 111, in index
self._conn.autocommit = old_autocommit
psycopg2.ProgrammingError: set_session cannot be used inside a transaction
The text was updated successfully, but these errors were encountered:
Expected behavior
Script runs smoothly as expected (and how it did with psycopg2==2.8.6)
Actual behavior
Script crashes
The text was updated successfully, but these errors were encountered: