How to check for pending operations in a PostgreSQL transaction

前端 未结 3 1606
野性不改
野性不改 2021-01-01 13:28

I have a session (SQLAlchemy) on PostgreSQL, with an active uncommitted transaction. I have just passed the session to some call tree that may or may not have issued SQL

3条回答
  •  猫巷女王i
    2021-01-01 14:15

    No, not from the database level, really. Perhaps you can add some tracing at the sqlalchemy level to track it?

    Also, how do you define a no-op? What if you updated a value to the same value it had before, is that a no-op or not? From the databases perspective, if it had one, it would not be a no-op. But from the application perspective, it probably would.

提交回复
热议问题