diff --git a/changelog.d/11847.misc b/changelog.d/11847.misc new file mode 100644 index 000000000000..5c3b2bcaf4e5 --- /dev/null +++ b/changelog.d/11847.misc @@ -0,0 +1 @@ +Preparation for reducing Postgres serialization errors: allow setting transaction isolation level. Contributed by Nick @ Beeper. diff --git a/synapse/storage/database.py b/synapse/storage/database.py index 7455326ed331..99802228c9f7 100644 --- a/synapse/storage/database.py +++ b/synapse/storage/database.py @@ -748,6 +748,7 @@ async def runInteraction( func, *args, db_autocommit=db_autocommit, + isolation_level=isolation_level, **kwargs, )