Hi,
I'm using SQLAlchemy's Core to interface a postgres database (via psycopg2) component alongside Flask-SQLAlchemy in a Flask app. Everything was working fine until I recently discovered what seems to be a deadlock state which is caused by two queries locking each other (at least that's my working hypothesis).
Postgres offers a wide range of locking mechanisms, so I wonder which one is used by SQLAlchemy (i.e. where is it set?).
This is how the database engine is being created (through Flask-SQLAlchemy.
```
db = sqlalchemy.create_engine(...)
# `db` reference is reused in process
# this is how queries are executed
rv = db.session.execute(select(...))
```
Is there any way I can check the transaction handling/locking used?