'Switch the isolation level when needing transaction support, so that
the same transaction is visible across all the queries.'

def _enter_transaction_management(self, managed):

    if (self.features.uses_autocommit and managed and (not self.isolation_level)):
        self._set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_READ_COMMITTED)
